From fc88fadb7151d51bbe09857f34dde73a336a5f06 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sun, 4 Jun 2023 23:57:29 +0300 Subject: refactor --- internal/quorum/quorum_test.go | 6 ++---- 1 file 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) } } -- cgit v1.2.3