diff options
| author | Paul Buetow <paul@buetow.org> | 2023-06-04 23:57:29 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2023-06-04 23:57:29 +0300 |
| commit | fc88fadb7151d51bbe09857f34dde73a336a5f06 (patch) | |
| tree | 5a7bc7e6de1de4f03c880132399e68f24ab6bcdd /internal | |
| parent | e9c671ea3f3bbf40f4461cc3df4c8f35914fb2f1 (diff) | |
refactor
Diffstat (limited to 'internal')
| -rw-r--r-- | internal/quorum/quorum_test.go | 6 |
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) } } |
