Print url.URLs correctly in tests

This commit is contained in:
Tobias Schmidt 2016-09-14 23:15:18 -04:00
parent 8f3b62bfe4
commit 27074863b4

View file

@ -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())
}
}