use go convention
@@ -106,24 +106,24 @@ func Test_testBackoffPullingRegistryRedhatImage(t *testing.T) {
To: time.Unix(1, 0),
},
}
- junit_tests := testBackoffPullingRegistryRedhatImage(e)
+ junitTests := testBackoffPullingRegistryRedhatImage(e)
switch tt.kind {
case "pass":
- if len(junit_tests) != 1 {
- t.Errorf("This should've been a single passing test, but got %d tests", len(junit_tests))
+ if len(junitTests) != 1 {
+ t.Errorf("This should've been a single passing test, but got %d tests", len(junitTests))
}
- if len(junit_tests[0].SystemOut) != 0 {
- t.Errorf("This should've been a pass, but got %s", junit_tests[0].SystemErr)
+ if len(junitTests[0].SystemOut) != 0 {
+ t.Errorf("This should've been a pass, but got %s", junitTests[0].SystemErr)
}
case "fail":
// At this time, we always want this case to be a flake; so, this will always flake
// since failureThreshold is maxInt.
- if len(junit_tests) != 2 {
- t.Errorf("This should've been a two tests as flake, but got %d tests", len(junit_tests))
+ if len(junitTests) != 2 {
+ t.Errorf("This should've been a two tests as flake, but got %d tests", len(junitTests))
}
case "flake":
- if len(junit_tests) != 2 {
- t.Errorf("This should've been a two tests as flake, but got %d tests", len(junit_tests))
+ if len(junitTests) != 2 {
+ t.Errorf("This should've been a two tests as flake, but got %d tests", len(junitTests))
}
default:
t.Errorf("Unknown test kind")
