This is an automated email from the ASF dual-hosted git repository. mikexue pushed a commit to branch eventmesh-function in repository https://gitbox.apache.org/repos/asf/eventmesh.git
commit 8804deb0506503c756643d77565ed743c9bef49c Author: xwm1992 <[email protected]> AuthorDate: Mon Jul 1 19:28:26 2024 +0800 fix http source connector test error --- .../connector/http/source/connector/HttpSourceConnectorTest.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/eventmesh-connectors/eventmesh-connector-http/src/test/java/org/apache/eventmesh/connector/http/source/connector/HttpSourceConnectorTest.java b/eventmesh-connectors/eventmesh-connector-http/src/test/java/org/apache/eventmesh/connector/http/source/connector/HttpSourceConnectorTest.java index b764b4a98..b4cad1426 100644 --- a/eventmesh-connectors/eventmesh-connector-http/src/test/java/org/apache/eventmesh/connector/http/source/connector/HttpSourceConnectorTest.java +++ b/eventmesh-connectors/eventmesh-connector-http/src/test/java/org/apache/eventmesh/connector/http/source/connector/HttpSourceConnectorTest.java @@ -57,6 +57,9 @@ class HttpSourceConnectorTest { connector.init(sourceConfig); connector.start(); + // Add delay to ensure the server is fully started before the tests begin + Thread.sleep(2000); + url = new URL("http", "127.0.0.1", config.getPort(), config.getPath()).toString(); httpClient = new OkHttpClient(); } --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
