Skip to content

Commit

Permalink
stupid linter
Browse files Browse the repository at this point in the history
  • Loading branch information
vyzo committed Nov 4, 2020
1 parent af682a3 commit 49544a3
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions chain/store/coalescer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ func TestHeadChangeCoalescer(t *testing.T) {
notif <- headChange{apply: apply, revert: revert}
return nil
}, 100*time.Millisecond)
defer c.Close()
defer c.Close() //nolint

b0 := mock.MkBlock(nil, 0, 0)
root := mock.TipSet(b0)
Expand All @@ -30,10 +30,10 @@ func TestHeadChangeCoalescer(t *testing.T) {
bE := mock.MkBlock(root, 1, 5)
tABCDE := mock.TipSet(bA, bB, bC, bD, bE)

c.HeadChange(nil, []*types.TipSet{tA})
c.HeadChange(nil, []*types.TipSet{tB})
c.HeadChange([]*types.TipSet{tA, tB}, []*types.TipSet{tAB})
c.HeadChange([]*types.TipSet{tAB}, []*types.TipSet{tABC})
c.HeadChange(nil, []*types.TipSet{tA}) //nolint
c.HeadChange(nil, []*types.TipSet{tB}) //nolint
c.HeadChange([]*types.TipSet{tA, tB}, []*types.TipSet{tAB}) //nolint
c.HeadChange([]*types.TipSet{tAB}, []*types.TipSet{tABC}) //nolint

change := <-notif

Expand All @@ -47,8 +47,8 @@ func TestHeadChangeCoalescer(t *testing.T) {
t.Fatalf("expected to apply tABC")
}

c.HeadChange([]*types.TipSet{tABC}, []*types.TipSet{tABCD})
c.HeadChange([]*types.TipSet{tABCD}, []*types.TipSet{tABCDE})
c.HeadChange([]*types.TipSet{tABC}, []*types.TipSet{tABCD}) //nolint
c.HeadChange([]*types.TipSet{tABCD}, []*types.TipSet{tABCDE}) //nolint

change = <-notif

Expand Down

0 comments on commit 49544a3

Please sign in to comment.