Skip to content

Commit 433bd22

Browse files
author
Matt Brittan
committed
address data race in test
1 parent 4debe3a commit 433bd22

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fvt_client_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1770,8 +1770,8 @@ func Test_Ack_After_Disconnect(t *testing.T) {
17701770
p.Disconnect(0)
17711771
s.Disconnect(0)
17721772

1773-
// Hack to wait until disconnection complete
1774-
for s.(*client).status.status != disconnected {
1773+
// Ensure disconnection complete before proceeding
1774+
for s.(*client).status.ConnectionStatus() != disconnected {
17751775
time.Sleep(10 * time.Millisecond)
17761776
}
17771777
close(disconnectDone)

0 commit comments

Comments
 (0)