test: cleanup URISyntaxException exceptions

Note: we cannot update the `IO.socket(uri: string)` method without
doing a breaking change.
This commit is contained in:
Damien Arrachequesne
2021-04-26 10:48:41 +02:00
parent 67fd5f34a3
commit a4053e8645
5 changed files with 71 additions and 76 deletions

View File

@@ -16,6 +16,7 @@ import javax.net.ssl.X509TrustManager;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.net.URI;
import java.security.GeneralSecurityException;
import java.security.KeyStore;
import java.util.concurrent.BlockingQueue;
@@ -39,8 +40,8 @@ public class SSLConnectionTest extends Connection {
}
@Override
String uri() {
return "https://localhost:" + PORT;
URI uri() {
return URI.create("https://localhost:" + PORT);
}
@Override