From 3395f21c88f882135e952710a9f2d12b609d1b98 Mon Sep 17 00:00:00 2001 From: Metacertain Date: Mon, 7 Jun 2021 14:43:11 +0200 Subject: [PATCH] fix: test --- pkg/p2p/streamtest/streamtest.go | 1 - pkg/pushsync/pushsync_test.go | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/p2p/streamtest/streamtest.go b/pkg/p2p/streamtest/streamtest.go index 942e99aef57..825c323a759 100644 --- a/pkg/p2p/streamtest/streamtest.go +++ b/pkg/p2p/streamtest/streamtest.go @@ -101,7 +101,6 @@ func (r *Recorder) NewStream(ctx context.Context, addr swarm.Address, h p2p.Head return nil, err } } - recordIn := newRecord() recordOut := newRecord() streamOut := newStream(recordIn, recordOut) diff --git a/pkg/pushsync/pushsync_test.go b/pkg/pushsync/pushsync_test.go index 14fbe035d2d..09ca4fe5e21 100644 --- a/pkg/pushsync/pushsync_test.go +++ b/pkg/pushsync/pushsync_test.go @@ -961,7 +961,7 @@ func TestPushChunkToClosestSkipFailed(t *testing.T) { if triggerCount < 9 { triggerCount++ stream.Close() - return errors.New("fmt") + return errors.New("new error") } if err := h(ctx, peer, stream); err != nil {