Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
otoolep committed Apr 26, 2024
1 parent ab5f120 commit 6a882e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cluster/join_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ func Test_SingleJoinCancel(t *testing.T) {
c := NewClient(&simpleDialer{}, 0)
joiner := NewJoiner(c, 10, attemptInterval)
_, err := joiner.Do(ctx, []string{srv.Addr()}, "id0", "1.2.3.4", Voter)
if err != context.Canceled {
if err != ErrJoinCanceled {
t.Fatalf("incorrect error returned when canceling: %s", err)
}
}
Expand Down

0 comments on commit 6a882e3

Please sign in to comment.