Skip to content

Commit

Permalink
RTN16c: Expect connection key to be gone on CLOSED, not CLOSING.
Browse files Browse the repository at this point in the history
  • Loading branch information
tcard committed Nov 9, 2020
1 parent eba16f1 commit bdb4f30
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ably/realtime_conn_spec_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1648,7 +1648,11 @@ func TestRealtimeConn_RTN16(t *testing.T) {
}

{ //(RTN16c)
client.Close()
err := ablytest.Wait(ablytest.ConnWaiter(client, client.Close, ably.ConnectionEventClosed), nil)
if err != nil {
t.Fatal(err)
}

if key := client.Connection.Key(); key != "" {
t.Errorf("expected key to be empty got %q instead", key)
}
Expand Down

0 comments on commit bdb4f30

Please sign in to comment.