Skip to content

Commit

Permalink
Moved back in localhost, otherwise the correct condition is not reach…
Browse files Browse the repository at this point in the history
…ed, and the multithread route is not used.
  • Loading branch information
Jeffery-Wasty committed May 25, 2023
1 parent d2eaa68 commit e5d5fea
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -940,7 +940,7 @@ public void run() {
* Test thread count when finding socket using threading.
*
* @throws InterruptedException
* If any thread has interrupted the current thread..
* If any thread has interrupted the current thread.
*/
@Test
@Tag(Constants.xAzureSQLDB)
Expand All @@ -954,6 +954,7 @@ public void testThreadCountWhenFindingSocket() throws InterruptedException {
executor.submit(() -> {
try {
SQLServerDataSource ds = new SQLServerDataSource();
ds.setServerName("localhost");
Thread.sleep(5000);
Connection conn2 = ds.getConnection();
} catch (Exception e) {
Expand All @@ -963,6 +964,7 @@ public void testThreadCountWhenFindingSocket() throws InterruptedException {
}
});
SQLServerDataSource ds = new SQLServerDataSource();
ds.setServerName("localhost");
Connection conn = ds.getConnection();
Thread.sleep(5000);
} catch (Exception e) {
Expand Down

0 comments on commit e5d5fea

Please sign in to comment.