Fix failing TestTestUnsupportedURL test

This commit is contained in:
Mattias Wadman
2022-07-30 11:38:52 +02:00
parent 70296032d9
commit 2caa37324b

View File

@ -194,7 +194,7 @@ func TestTestUnsupportedURL(t *testing.T) {
if ydlResultErr == nil {
t.Errorf("expected unsupported url")
}
expectedErrPrefix := "Unsupported URL: https://www.google.com"
expectedErrPrefix := "Unsupported URL:"
if ydlResultErr != nil && !strings.HasPrefix(ydlResultErr.Error(), expectedErrPrefix) {
t.Errorf("expected error prefix %q got %q", expectedErrPrefix, ydlResultErr.Error())