public static boolean checkUrl(final String url) {
        return checkUrl(url, DEFAULT_TIMEOUT);
    }
@Test
    @Disabled
    public void testSocketConnect() {
        Runnable runnable = () -> {
            ServerSocket serverSocket;
            try {
                serverSocket = new ServerSocket(0);
                port = serverSocket.getLocalPort();
                Socket socket = serverSocket.accept();
                socket.close();
            } catch (IOException e) {
                LOG.error(e.getMessage());
            }
        };
        new Thread(runnable).start();

        while (port == -1) {
            Thread.yield();
        }

        assertTrue(UpstreamCheckUtils.checkUrl("127.0.0.1:" + port));
        assertFalse(UpstreamCheckUtils.checkUrl("http://127.0.0.1:" + (port == 0 ? port + 1 : port - 1)));
        assertTrue(UpstreamCheckUtils.checkUrl("http://127.0.0.1:" + port));
        assertTrue(UpstreamCheckUtils.checkUrl("https://shenyu.apache.org"));
    }