Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

s2 should see its status as alive after fixing issue #18 #738

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions serf/serf_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1699,17 +1699,17 @@ func TestSerf_joinLeaveJoin(t *testing.T) {
r.Fatalf("s2 members: %d", s2.NumNodes())
}

// s1 should see the node as alive
mems := s1.Members()
anyLeft := false
// s2 should see the itself as alive
mems := s2.Members()
anyLeaving := false
for _, m := range mems {
if m.Status == StatusLeft {
anyLeft = true
if m.Status == StatusLeaving {
anyLeaving = true
break
}
}
if anyLeft {
r.Fatalf("all nodes should be alive!")
if anyLeaving {
t.Fatalf("all nodes should be alive!")
}
})
}
Expand Down
Loading