Skip to content

Commit

Permalink
test: fix unstable test TestClientWatchWithRevision (#6056)
Browse files Browse the repository at this point in the history
close #6013

Signed-off-by: glorv <glorvs@163.com>
  • Loading branch information
glorv authored Feb 28, 2023
1 parent 6be15a5 commit b7e47c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/client/global_config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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++ {
Expand Down

0 comments on commit b7e47c5

Please sign in to comment.