Browse Source

Fix remaining ``make advice`` issues.

pull/84/head
Matt T. Proud 12 years ago
parent
commit
582354f6de
  1. 6
      storage/metric/operation_test.go
  2. 2
      storage/metric/stochastic_test.go

6
storage/metric/operation_test.go

@ -1271,7 +1271,7 @@ func TestGetValuesAtTimeOp(t *testing.T) {
}
for j, out := range scenario.out {
if out != actual[j] {
t.Fatal("%d. expected output %v, got %v", i, scenario.out, actual)
t.Fatalf("%d. expected output %v, got %v", i, scenario.out, actual)
}
}
}
@ -1472,7 +1472,7 @@ func TestGetValuesAtIntervalOp(t *testing.T) {
}
for j, out := range scenario.out {
if out != actual[j] {
t.Fatal("%d. expected output %v, got %v", i, scenario.out, actual)
t.Fatalf("%d. expected output %v, got %v", i, scenario.out, actual)
}
}
}
@ -1648,7 +1648,7 @@ func TestGetValuesAlongRangeOp(t *testing.T) {
}
for j, out := range scenario.out {
if out != actual[j] {
t.Fatal("%d. expected output %v, got %v", i, scenario.out, actual)
t.Fatalf("%d. expected output %v, got %v", i, scenario.out, actual)
}
}
}

2
storage/metric/stochastic_test.go

@ -156,7 +156,7 @@ func AppendSampleAsSparseAppendWithReadsTests(p MetricPersistence, t test.Tester
return
}
if len(fingerprints) != 1 {
t.Error("expected fingerprint count of %d, got %d", 1, len(fingerprints))
t.Errorf("expected fingerprint count of %d, got %d", 1, len(fingerprints))
return
}

Loading…
Cancel
Save