From 670d83a74e66feb6118bc3ffd3c76695a535eaa7 Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Sun, 13 Oct 2013 21:37:17 -0500 Subject: [PATCH] Improve error message for FetchBlockBySha test.wq --- interface_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/interface_test.go b/interface_test.go index 8ffa33d7..0cdf0dec 100644 --- a/interface_test.go +++ b/interface_test.go @@ -65,8 +65,8 @@ func testInterface(t *testing.T, dbType string) { t.Errorf("FetchBlockBySha: %v", err) } if !reflect.DeepEqual(block.MsgBlock(), blockFromDb.MsgBlock()) { - t.Errorf("Block from database does not match stored "+ - "block\ngot: %v\nwant: %v", + t.Errorf("FetchBlockBySha: block from database does "+ + "not match stored block\ngot: %v\nwant: %v", spew.Sdump(blockFromDb.MsgBlock()), spew.Sdump(block.MsgBlock())) return @@ -82,9 +82,9 @@ func testInterface(t *testing.T, dbType string) { return } if !reflect.DeepEqual(blockBytes, blockFromDbBytes) { - t.Errorf("Block bytes from database do not match "+ - "stored block bytes\ngot: %v\nwant: %v", - spew.Sdump(blockFromDbBytes), + t.Errorf("FetchBlockBySha: block bytes from database "+ + "do not match stored block bytes\ngot: %v\n"+ + "want: %v", spew.Sdump(blockFromDbBytes), spew.Sdump(blockBytes)) return }