diff --git a/retrieval/target_test.go b/retrieval/target_test.go index d0d7018d6..6b8f55c4f 100644 --- a/retrieval/target_test.go +++ b/retrieval/target_test.go @@ -122,7 +122,7 @@ func TestTargetURL(t *testing.T) { } if u := target.URL(); !reflect.DeepEqual(u.String(), expectedURL.String()) { - t.Fatalf("Expected URL %q but got %q", expectedURL, u) + t.Fatalf("Expected URL %q, but got %q", expectedURL.String(), u.String()) } }