From a76a162cdab5f320850473389401beb76c388ae6 Mon Sep 17 00:00:00 2001 From: Sebastien Plisson Date: Thu, 26 Apr 2018 15:06:09 -0700 Subject: [PATCH] Use Errorf --- pkg/processor/processor_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/processor/processor_test.go b/pkg/processor/processor_test.go index 85c529482..c4ee78139 100644 --- a/pkg/processor/processor_test.go +++ b/pkg/processor/processor_test.go @@ -119,18 +119,18 @@ func TestDefaultUseSSL(t *testing.T) { useSSL := processor.defaultUseSSL(nil) if useSSL != true { - t.Error("Expected useSSL to default to true when not specified, got %v", useSSL) + t.Errorf("Expected useSSL to default to true when not specified, got %v", useSSL) } useSSL = true useSSL = processor.defaultUseSSL(&useSSL) if useSSL != true { - t.Error("Expected useSSL to be true when specified as true, got %v", useSSL) + t.Errorf("Expected useSSL to be true when specified as true, got %v", useSSL) } useSSL = false useSSL = processor.defaultUseSSL(&useSSL) if useSSL != false { - t.Error("Expected useSSL to be false when specified as false, got %v", useSSL) + t.Errorf("Expected useSSL to be false when specified as false, got %v", useSSL) } }