aboutsummaryrefslogtreecommitdiffstats
path: root/utils/merkletrie/iter_test.go
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2017-04-26 15:49:34 +0200
committerGitHub <noreply@github.com>2017-04-26 15:49:34 +0200
commite85778eecc8df3356a238396933c1303ab79124c (patch)
tree898fcce1fa5f6ddceaf102a408d8319bf4bdd1ae /utils/merkletrie/iter_test.go
parentdf8b1cb8a8d4b3d53cbe64ae306d72bde29b56b0 (diff)
parentbca4f9541ae0620ff203bde6da5e3126cfa16f04 (diff)
downloadgo-git-e85778eecc8df3356a238396933c1303ab79124c.tar.gz
Merge pull request #360 from smola/go-vet
fix go vet issues, add go vet to CI
Diffstat (limited to 'utils/merkletrie/iter_test.go')
-rw-r--r--utils/merkletrie/iter_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/merkletrie/iter_test.go b/utils/merkletrie/iter_test.go
index ba28f0b..7e8c302 100644
--- a/utils/merkletrie/iter_test.go
+++ b/utils/merkletrie/iter_test.go
@@ -65,7 +65,7 @@ func (t test) run(c *C, iter *merkletrie.Iter,
var obtained noder.Path
var err error
- for i := range t.operations {
+ for i, b := range t.operations {
comment := Commentf("\ntree: %q\ntest #%d (%q)\noperation #%d (%q)",
treeDescription, testNumber, t.operations, i, t.operations[i])
@@ -81,8 +81,8 @@ func (t test) run(c *C, iter *merkletrie.Iter,
c.Assert(err, IsNil)
}
default:
- c.Fatalf("unknown operation at test %d, operation %d (%s)\n",
- testNumber, i, t.operations[i])
+ c.Fatalf("unknown operation at test %d, operation %d (%c)\n",
+ testNumber, i, b)
}
if i >= len(expectedChunks) {
c.Assert(err, Equals, io.EOF, comment)