Skip to content

Commit

Permalink
fix http source connector test error
Browse files Browse the repository at this point in the history
  • Loading branch information
xwm1992 committed Jul 1, 2024
1 parent f2d7645 commit 4e638f5
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ void setUp() throws Exception {
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();
}
Expand Down

0 comments on commit 4e638f5

Please sign in to comment.