Skip to content

Commit

Permalink
Attempt to fix flaky TestConnection
Browse files Browse the repository at this point in the history
Signed-off-by: Rohit Nayak <rohit@planetscale.com>
  • Loading branch information
rohit-nayak-ps authored and deepthi committed Oct 15, 2020
1 parent dbd7ab6 commit e98892b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions go/test/endtoend/messaging/message_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,7 @@ func TestConnection(t *testing.T) {
_, err = stream.MessageStream(userKeyspace, "", nil, name)
require.Nil(t, err)
// validate client count of vttablet
time.Sleep(time.Second)
assert.Equal(t, 1, getClientCount(shard0Master))
assert.Equal(t, 1, getClientCount(shard1Master))
// second connection with vtgate, secont connection
Expand All @@ -340,6 +341,7 @@ func TestConnection(t *testing.T) {
_, err = stream1.MessageStream(userKeyspace, "", nil, name)
require.Nil(t, err)
// validate client count of vttablet
time.Sleep(time.Second)
assert.Equal(t, 2, getClientCount(shard0Master))
assert.Equal(t, 2, getClientCount(shard1Master))

Expand Down

0 comments on commit e98892b

Please sign in to comment.