From 5164671bc642569fbec92d6805c5da24b38d877c Mon Sep 17 00:00:00 2001 From: Dan Buch Date: Thu, 6 Nov 2014 08:42:52 -0500 Subject: [PATCH] Making panic level assertions more helpful --- entry_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/entry_test.go b/entry_test.go index 2ad192e..98717df 100644 --- a/entry_test.go +++ b/entry_test.go @@ -20,7 +20,7 @@ func TestEntryPanicln(t *testing.T) { assert.Equal(t, "kaboom", pVal.Message) assert.Equal(t, errBoom, pVal.Data["err"]) default: - t.Fatal() + t.Fatalf("want type *Entry, got %T: %#v", pVal, pVal) } }() @@ -42,7 +42,7 @@ func TestEntryPanicf(t *testing.T) { assert.Equal(t, "kaboom true", pVal.Message) assert.Equal(t, errBoom, pVal.Data["err"]) default: - t.Fatal() + t.Fatalf("want type *Entry, got %T: %#v", pVal, pVal) } }()