summaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2023-06-04 23:57:29 +0300
committerPaul Buetow <paul@buetow.org>2023-06-04 23:57:29 +0300
commitfc88fadb7151d51bbe09857f34dde73a336a5f06 (patch)
tree5a7bc7e6de1de4f03c880132399e68f24ab6bcdd /internal
parente9c671ea3f3bbf40f4461cc3df4c8f35914fb2f1 (diff)
refactor
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)
}
}