From 3d89b56b27c35597089f28b453c13701479b1a48 Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Wed, 22 Jul 2015 09:24:36 -0500 Subject: [PATCH] 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%. --- wire/msgtx_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wire/msgtx_test.go b/wire/msgtx_test.go index 2e4e2030..aedc7a29 100644 --- a/wire/msgtx_test.go +++ b/wire/msgtx_test.go @@ -348,7 +348,7 @@ func TestTxWireErrors(t *testing.T) { // Force error in transaction output pk script. {multiTx, multiTxEncoded, pver, 63, io.ErrShortWrite, io.EOF}, // 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)) @@ -493,7 +493,7 @@ func TestTxSerializeErrors(t *testing.T) { // Force error in transaction output pk script. {multiTx, multiTxEncoded, 63, io.ErrShortWrite, io.EOF}, // 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))