Skip to content

Commit

Permalink
Fix uses of format flags in non printf functions
Browse files Browse the repository at this point in the history
  • Loading branch information
dterei authored and iain barnett committed Sep 21, 2019
1 parent 8422675 commit bc1c37a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions start_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ func TestPortFromEnv(t *testing.T) {
os.Setenv("PORT", "4000")
port, err = basePort(env)
if err != nil {
t.Fatal("Can not get port: %s", err)
t.Fatalf("Can not get port: %s", err)
}
if port != 4000 {
t.Fatal("Base port should be 4000")
Expand Down Expand Up @@ -162,14 +162,14 @@ func TestConfigBeOverrideByForegoFile(t *testing.T) {
}

if port != 15000 {
t.Fatal("port should be 15000, got %d", port)
t.Fatalf("port should be 15000, got %d", port)
}

if concurrency != "foo=2,bar=3" {
t.Fatal("concurrency should be 'foo=2,bar=3', got %s", concurrency)
t.Fatalf("concurrency should be 'foo=2,bar=3', got %s", concurrency)
}

if gracetime != 30 {
t.Fatal("gracetime should be 3, got %d", gracetime)
t.Fatalf("gracetime should be 3, got %d", gracetime)
}
}

0 comments on commit bc1c37a

Please sign in to comment.