From 82e52049d61501fe0f028b00ca45ccd6af4c1661 Mon Sep 17 00:00:00 2001 From: Stephen Buttolph Date: Thu, 30 Jun 2022 14:28:24 -0400 Subject: [PATCH] Remove printing from tests (#1618) --- snow/consensus/avalanche/poll/set_test.go | 7 ------- vms/proposervm/proposer/windower_test.go | 2 -- 2 files changed, 9 deletions(-) diff --git a/snow/consensus/avalanche/poll/set_test.go b/snow/consensus/avalanche/poll/set_test.go index 63ead5af2f3b..e7cbf4e86138 100644 --- a/snow/consensus/avalanche/poll/set_test.go +++ b/snow/consensus/avalanche/poll/set_test.go @@ -4,7 +4,6 @@ package poll import ( - "fmt" "testing" "github.com/stretchr/testify/assert" @@ -205,12 +204,6 @@ func TestCreateAndFinishPollOutOfOrder_UnfinishedPollsGaps(t *testing.T) { assert.Len(t, results, 0) results = s.Vote(1, vdr3, []ids.ID{vtx1}) assert.Len(t, results, 3) - fmt.Println("vtx1", vtx1.String()) - fmt.Println("vtx2", vtx2.String()) - fmt.Println("vtx3", vtx3.String()) - for i, result := range results { - fmt.Println("result[", i, "]=", result.List()[0].String()) - } assert.Equal(t, vtx1.String(), results[0].List()[0].String()) assert.Equal(t, vtx2.String(), results[1].List()[0].String()) assert.Equal(t, vtx3.String(), results[2].List()[0].String()) diff --git a/vms/proposervm/proposer/windower_test.go b/vms/proposervm/proposer/windower_test.go index b239019e406f..dd83f33f5557 100644 --- a/vms/proposervm/proposer/windower_test.go +++ b/vms/proposervm/proposer/windower_test.go @@ -4,7 +4,6 @@ package proposer import ( - "fmt" "math/rand" "testing" "time" @@ -94,7 +93,6 @@ func TestWindowerChangeByHeight(t *testing.T) { } for i, expectedDelay := range expectedDelays1 { vdrID := validatorIDs[i] - fmt.Println(vdrID) validatorDelay, err := w.Delay(1, 0, vdrID) assert.NoError(err) assert.EqualValues(expectedDelay, validatorDelay)