summaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
Diffstat (limited to 'internal')
-rw-r--r--internal/quorum/quorum_test.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/internal/quorum/quorum_test.go b/internal/quorum/quorum_test.go
index 176a4fb..e1463e2 100644
--- a/internal/quorum/quorum_test.go
+++ b/internal/quorum/quorum_test.go
@@ -138,13 +138,11 @@ func TestLiveNodes(t *testing.T) {
vote2.ExpiresAt = time.Now().Add(1 * time.Hour)
quo.vote(vote2)
- liveNodes, changed := quo.liveNodes()
- if !changed {
+ if liveNodes, changed := quo.liveNodes(); !changed {
t.Errorf("Expected live node list to be changed: %v", liveNodes)
}
- liveNodes, changed = quo.liveNodes()
- if changed {
+ if liveNodes, changed := quo.liveNodes(); changed {
t.Errorf("Expected live node list not to be changed: %v", liveNodes)
}
}