Skip to content

Commit

Permalink
Use Errorf
Browse files Browse the repository at this point in the history
  • Loading branch information
splisson-altair committed Apr 26, 2018
1 parent fd5a7e8 commit a76a162
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/processor/processor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

0 comments on commit a76a162

Please sign in to comment.