From 3cd90355dff06171a1a261f03078c2512f21dd98 Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Thu, 9 May 2013 11:36:29 -0500 Subject: [PATCH] Correct error output string colon placement. --- common_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/common_test.go b/common_test.go index 40556b4d2..5235a5c8c 100644 --- a/common_test.go +++ b/common_test.go @@ -128,7 +128,7 @@ func TestVarIntWireErrors(t *testing.T) { w := newFixedWriter(test.max) err := btcwire.TstWriteVarInt(w, test.pver, test.in) if err != test.writeErr { - t.Errorf("writeVarInt #%d wrong error got: %v, want :%v", + t.Errorf("writeVarInt #%d wrong error got: %v, want: %v", i, err, test.writeErr) continue } @@ -137,7 +137,7 @@ func TestVarIntWireErrors(t *testing.T) { r := newFixedReader(test.max, test.buf) _, err = btcwire.TstReadVarInt(r, test.pver) if err != test.readErr { - t.Errorf("readVarInt #%d wrong error got: %v, want :%v", + t.Errorf("readVarInt #%d wrong error got: %v, want: %v", i, err, test.readErr) continue } @@ -227,7 +227,7 @@ func TestVarStringWireErrors(t *testing.T) { w := newFixedWriter(test.max) err := btcwire.TstWriteVarString(w, test.pver, test.in) if err != test.writeErr { - t.Errorf("writeVarString #%d wrong error got: %v, want :%v", + t.Errorf("writeVarString #%d wrong error got: %v, want: %v", i, err, test.writeErr) continue } @@ -236,7 +236,7 @@ func TestVarStringWireErrors(t *testing.T) { r := newFixedReader(test.max, test.buf) _, err = btcwire.TstReadVarString(r, test.pver) if err != test.readErr { - t.Errorf("readVarString #%d wrong error got: %v, want :%v", + t.Errorf("readVarString #%d wrong error got: %v, want: %v", i, err, test.readErr) continue }