diff --git a/okhttp/src/test/java/okhttp3/HttpUrlTest.java b/okhttp/src/test/java/okhttp3/HttpUrlTest.java index 59ae43c7538d..625e29c309f3 100644 --- a/okhttp/src/test/java/okhttp3/HttpUrlTest.java +++ b/okhttp/src/test/java/okhttp3/HttpUrlTest.java @@ -148,6 +148,7 @@ public void parseDoesNotTrimOtherWhitespaceCharacters() throws Exception { @Test public void parseNoScheme() throws Exception { assertInvalid("//host", "Expected URL scheme 'http' or 'https' but no scheme was found for //host"); + assertInvalid("://host", "Expected URL scheme 'http' or 'https' but no scheme was found for ://hos..."); assertInvalid("/path", "Expected URL scheme 'http' or 'https' but no scheme was found for /path"); assertInvalid("path", "Expected URL scheme 'http' or 'https' but no scheme was found for path"); assertInvalid("?query", "Expected URL scheme 'http' or 'https' but no scheme was found for ?query");