Skip to content

Commit

Permalink
*: make test great again (#6767)
Browse files Browse the repository at this point in the history
close #6761

Signed-off-by: Ryan Leung <rleungx@gmail.com>
  • Loading branch information
rleungx committed Jul 6, 2023
1 parent e9c6f33 commit b8190c5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/integrations/mcs/tso/keyspace_group_manager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -738,10 +738,8 @@ func TestGetTSOImmediately(t *testing.T) {
kgm.SetPriorityForKeyspaceGroup(0, kg0.Members[0].Address, 100)
kgm.SetPriorityForKeyspaceGroup(1, kg1.Members[1].Address, 100)
testutil.Eventually(re, func() bool {
p0, err := kgm.GetKeyspaceGroupPrimaryByID(0)
re.NoError(err)
p1, err := kgm.GetKeyspaceGroupPrimaryByID(1)
re.NoError(err)
p0, _ := kgm.GetKeyspaceGroupPrimaryByID(0)
p1, _ := kgm.GetKeyspaceGroupPrimaryByID(1)
return p0 == kg0.Members[0].Address && p1 == kg1.Members[1].Address
}, testutil.WithWaitFor(5*time.Second), testutil.WithTickInterval(50*time.Millisecond))

Expand Down

0 comments on commit b8190c5

Please sign in to comment.