etcdserver: recover cluster version from backend

This commit is contained in:
Jingyi Hu
2019-12-03 10:35:50 -08:00
committed by yoyinzyc
parent 5cd2502ab1
commit ed5a01a48d
3 changed files with 23 additions and 3 deletions

View File

@ -1898,7 +1898,7 @@ func TestV3LargeRequests(t *testing.T) {
expectError error
}{
// don't set to 0. use 0 as the default.
{1, 1024, rpctypes.ErrGRPCRequestTooLarge},
{256, 1024, rpctypes.ErrGRPCRequestTooLarge},
{10 * 1024 * 1024, 9 * 1024 * 1024, nil},
{10 * 1024 * 1024, 10 * 1024 * 1024, rpctypes.ErrGRPCRequestTooLarge},
{10 * 1024 * 1024, 10*1024*1024 + 5, rpctypes.ErrGRPCRequestTooLarge},