wire: Update tests to force error in tx lock time.
This commit updates the wire tests for transactions which force serialization and deserialization errors to force an error in the the transaction lock time path. This brings the wire test coverage back up to 100%.
This commit is contained in:
parent
6f1272e767
commit
3d89b56b27
1 changed files with 2 additions and 2 deletions
|
@ -348,7 +348,7 @@ func TestTxWireErrors(t *testing.T) {
|
||||||
// Force error in transaction output pk script.
|
// Force error in transaction output pk script.
|
||||||
{multiTx, multiTxEncoded, pver, 63, io.ErrShortWrite, io.EOF},
|
{multiTx, multiTxEncoded, pver, 63, io.ErrShortWrite, io.EOF},
|
||||||
// Force error in transaction output lock time.
|
// Force error in transaction output lock time.
|
||||||
{multiTx, multiTxEncoded, pver, 130, io.ErrShortWrite, io.EOF},
|
{multiTx, multiTxEncoded, pver, 206, io.ErrShortWrite, io.EOF},
|
||||||
}
|
}
|
||||||
|
|
||||||
t.Logf("Running %d tests", len(tests))
|
t.Logf("Running %d tests", len(tests))
|
||||||
|
@ -493,7 +493,7 @@ func TestTxSerializeErrors(t *testing.T) {
|
||||||
// Force error in transaction output pk script.
|
// Force error in transaction output pk script.
|
||||||
{multiTx, multiTxEncoded, 63, io.ErrShortWrite, io.EOF},
|
{multiTx, multiTxEncoded, 63, io.ErrShortWrite, io.EOF},
|
||||||
// Force error in transaction output lock time.
|
// Force error in transaction output lock time.
|
||||||
{multiTx, multiTxEncoded, 130, io.ErrShortWrite, io.EOF},
|
{multiTx, multiTxEncoded, 206, io.ErrShortWrite, io.EOF},
|
||||||
}
|
}
|
||||||
|
|
||||||
t.Logf("Running %d tests", len(tests))
|
t.Logf("Running %d tests", len(tests))
|
||||||
|
|
Loading…
Add table
Reference in a new issue