diff --git a/config/interpolate_funcs_test.go b/config/interpolate_funcs_test.go index 2061e6ad8..e887a8c85 100644 --- a/config/interpolate_funcs_test.go +++ b/config/interpolate_funcs_test.go @@ -302,8 +302,8 @@ func testFunction(t *testing.T, config testFunctionConfig) { if !reflect.DeepEqual(out, tc.Result) { t.Fatalf( - "%d: bad output for input: %s\n\nOutput: %#v", - i, tc.Input, out) + "%d: bad output for input: %s\n\nOutput: %#v\nExpected: %#v", + i, tc.Input, out, tc.Result) } } } diff --git a/config/module/detect_test.go b/config/module/detect_test.go index a81bba12b..e1e3b4372 100644 --- a/config/module/detect_test.go +++ b/config/module/detect_test.go @@ -45,7 +45,7 @@ func TestDetect(t *testing.T) { t.Fatalf("%d: bad err: %s", i, err) } if output != tc.Output { - t.Fatalf("%d: bad output: %s", i, output) + t.Fatalf("%d: bad output: %s\nexpected: %s", i, output, tc.Output) } } }