go fmt
This commit is contained in:
parent
347b15ba3a
commit
a080d13f1c
1 changed files with 3 additions and 3 deletions
|
@ -104,7 +104,7 @@ func TestUtxoStoreWriteRead(t *testing.T) {
|
|||
if err != nil {
|
||||
t.Error(err)
|
||||
}
|
||||
if n != 20 * (1 + int64(utxoByteSize)) {
|
||||
if n != 20*(1+int64(utxoByteSize)) {
|
||||
t.Error("Incorrect number of bytes written.")
|
||||
}
|
||||
|
||||
|
@ -144,13 +144,13 @@ func TestUtxoStoreWriteRead(t *testing.T) {
|
|||
}
|
||||
|
||||
truncatedReadBuf := bytes.NewBuffer(storeBytes)
|
||||
truncatedReadBuf.Truncate(10 * (1 + utxoByteSize) + btcwire.HashSize)
|
||||
truncatedReadBuf.Truncate(10*(1+utxoByteSize) + btcwire.HashSize)
|
||||
store3 := new(UtxoStore)
|
||||
n, err = store3.ReadFrom(truncatedReadBuf)
|
||||
if err != io.EOF {
|
||||
t.Error("Expected err = io.EOF reading from truncated buffer.")
|
||||
}
|
||||
if n != 10 * (1 + int64(utxoByteSize)) + btcwire.HashSize {
|
||||
if n != 10*(1+int64(utxoByteSize))+btcwire.HashSize {
|
||||
t.Error("Incorrect number of bytes read from truncated buffer.")
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue