Skip to content

Commit

Permalink
appease linter
Browse files Browse the repository at this point in the history
  • Loading branch information
erikgrinaker committed Jun 28, 2020
1 parent 3679c89 commit fa523d4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion export_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func setupExportTreeBasic(t require.TestingT) *ImmutableTree {
}

// setupExportTreeRandom sets up a randomly generated tree.
// nolint: go-lint
// nolint: dupl
func setupExportTreeRandom(t *testing.T) *ImmutableTree {
const (
randSeed = 49872768940 // For deterministic tests
Expand Down
1 change: 1 addition & 0 deletions node_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ func TestNode_encode_decode(t *testing.T) {
}, "000206036b65790576616c7565", false},
}
for name, tc := range testcases {
tc := tc
t.Run(name, func(t *testing.T) {
var buf bytes.Buffer
err := tc.node.writeBytes(&buf)
Expand Down
2 changes: 1 addition & 1 deletion tree_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ func TestVersionedRandomTree(t *testing.T) {
require.Equal(tree.nodeSize(), len(tree.ndb.nodes()))
}

// nolint: go-lint
// nolint: dupl
func TestTreeHash(t *testing.T) {
const (
randSeed = 49872768940 // For deterministic tests
Expand Down

0 comments on commit fa523d4

Please sign in to comment.