Skip to content
This repository has been archived by the owner on Jul 21, 2021. It is now read-only.

Commit

Permalink
Fix race conditions in t test
Browse files Browse the repository at this point in the history
  • Loading branch information
samuel committed Jan 30, 2018
1 parent ff6eb7f commit 07f1d62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zk/conn_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func TestRecurringReAuthHang(t *testing.T) {
if err != nil {
panic(err)
}
for conn.state != StateHasSession {
for conn.State() != StateHasSession {
time.Sleep(50 * time.Millisecond)
}

Expand All @@ -40,7 +40,7 @@ func TestRecurringReAuthHang(t *testing.T) {
}()

// Add auth.
conn.creds = append(conn.creds, authCreds{"digest", []byte("test:test")})
conn.AddAuth("digest", []byte("test:test"))

currentServer := conn.server
conn.debugCloseRecvLoop = true
Expand Down

0 comments on commit 07f1d62

Please sign in to comment.