Correct error output string colon placement.
This commit is contained in:
parent
5e416389b1
commit
3cd90355df
1 changed files with 4 additions and 4 deletions
|
@ -128,7 +128,7 @@ func TestVarIntWireErrors(t *testing.T) {
|
||||||
w := newFixedWriter(test.max)
|
w := newFixedWriter(test.max)
|
||||||
err := btcwire.TstWriteVarInt(w, test.pver, test.in)
|
err := btcwire.TstWriteVarInt(w, test.pver, test.in)
|
||||||
if err != test.writeErr {
|
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)
|
i, err, test.writeErr)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
@ -137,7 +137,7 @@ func TestVarIntWireErrors(t *testing.T) {
|
||||||
r := newFixedReader(test.max, test.buf)
|
r := newFixedReader(test.max, test.buf)
|
||||||
_, err = btcwire.TstReadVarInt(r, test.pver)
|
_, err = btcwire.TstReadVarInt(r, test.pver)
|
||||||
if err != test.readErr {
|
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)
|
i, err, test.readErr)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
@ -227,7 +227,7 @@ func TestVarStringWireErrors(t *testing.T) {
|
||||||
w := newFixedWriter(test.max)
|
w := newFixedWriter(test.max)
|
||||||
err := btcwire.TstWriteVarString(w, test.pver, test.in)
|
err := btcwire.TstWriteVarString(w, test.pver, test.in)
|
||||||
if err != test.writeErr {
|
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)
|
i, err, test.writeErr)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
@ -236,7 +236,7 @@ func TestVarStringWireErrors(t *testing.T) {
|
||||||
r := newFixedReader(test.max, test.buf)
|
r := newFixedReader(test.max, test.buf)
|
||||||
_, err = btcwire.TstReadVarString(r, test.pver)
|
_, err = btcwire.TstReadVarString(r, test.pver)
|
||||||
if err != test.readErr {
|
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)
|
i, err, test.readErr)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue