From c6910c6eab99c7d81202bed499863f2af5c03798 Mon Sep 17 00:00:00 2001 From: domi41 Date: Sun, 4 Jul 2021 06:46:53 +0200 Subject: [PATCH] test: tweak tests --- majorityjudgment_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/majorityjudgment_test.go b/majorityjudgment_test.go index 9c28e19..4fb14c1 100644 --- a/majorityjudgment_test.go +++ b/majorityjudgment_test.go @@ -43,7 +43,7 @@ func TestReadmeDemo(t *testing.T) { func TestNoProposals(t *testing.T) { poll := &PollTally{ - AmountOfJudges: 10, + AmountOfJudges: 0, Proposals: []*ProposalTally{}, } deliberator := &MajorityJudgment{} @@ -54,7 +54,7 @@ func TestNoProposals(t *testing.T) { func TestIncoherentTally(t *testing.T) { poll := &PollTally{ - AmountOfJudges: 2, // not 8 as it should + AmountOfJudges: 2, // lower than expected 8 Proposals: []*ProposalTally{ {Tally: []uint64{4, 4}}, {Tally: []uint64{2, 6}},