From b7e47c5e1fa05bada7655e35d1ae1a620f45a048 Mon Sep 17 00:00:00 2001 From: glorv Date: Tue, 28 Feb 2023 12:25:08 +0800 Subject: [PATCH] test: fix unstable test TestClientWatchWithRevision (#6056) close tikv/pd#6013 Signed-off-by: glorv --- tests/client/global_config_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/client/global_config_test.go b/tests/client/global_config_test.go index 17a8f4b71bc..5b99a570121 100644 --- a/tests/client/global_config_test.go +++ b/tests/client/global_config_test.go @@ -290,7 +290,7 @@ func (suite *globalConfigTestSuite) TestClientWatchWithRevision() { res, revision, err := suite.client.LoadGlobalConfig(suite.server.Context(), nil, globalConfigPath) suite.NoError(err) suite.Len(res, 1) - suite.Equal(r.Header.GetRevision(), revision) + suite.LessOrEqual(r.Header.GetRevision(), revision) suite.Equal(pd.GlobalConfigItem{EventType: pdpb.EventType_PUT, Name: suite.GetEtcdPath("test"), PayLoad: []byte("test"), Value: "test"}, res[0]) // Mock when start watcher there are existed some keys, will load firstly for i := 0; i < 6; i++ {