From dd232a2e406128726cf513c9976bca2425dc44c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ernesto=20Jime=CC=81nez?= Date: Sat, 24 Sep 2016 18:22:00 +0100 Subject: [PATCH] Fix vet warnings and go generate to update docs --- assert/assertions_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assert/assertions_test.go b/assert/assertions_test.go index 2f6e9a273..8eb02dc3e 100644 --- a/assert/assertions_test.go +++ b/assert/assertions_test.go @@ -690,7 +690,7 @@ func TestNoError(t *testing.T) { }() if err == nil { // err is not nil here! - t.Error("Error should be nil due to empty interface", err) + t.Errorf("Error should be nil due to empty interface: %s", err) } False(t, NoError(mockT, err), "NoError should fail with empty error interface") @@ -724,7 +724,7 @@ func TestError(t *testing.T) { }() if err == nil { // err is not nil here! - t.Error("Error should be nil due to empty interface", err) + t.Errorf("Error should be nil due to empty interface: %s", err) } True(t, Error(mockT, err), "Error should pass with empty error interface")