diff --git a/pkg/build/controller/strategy/util_test.go b/pkg/build/controller/strategy/util_test.go index a8e450a8ac5f..4df158c01500 100644 --- a/pkg/build/controller/strategy/util_test.go +++ b/pkg/build/controller/strategy/util_test.go @@ -89,9 +89,9 @@ func TestTrustedMergeEnvWithoutDuplicates(t *testing.T) { t.Errorf("Expected output env 'foo' to have value 'test', got %+v", output[0]) } if output[1].Name != "BUILD_LOGLEVEL" { - t.Errorf("Expected output to have env 'BUILD_LOGLEVEL', got %+v", output[0]) + t.Errorf("Expected output to have env 'BUILD_LOGLEVEL', got %+v", output[1]) } if output[1].Value != "loglevel" { - t.Errorf("Expected output env 'foo' to have value 'loglevel', got %+v", output[0]) + t.Errorf("Expected output env 'BUILD_LOGLEVEL' to have value 'loglevel', got %+v", output[1]) } }