Skip to content

Commit

Permalink
Comments on loom test (#8340)
Browse files Browse the repository at this point in the history
  • Loading branch information
yschimke committed Apr 6, 2024
1 parent b4614e4 commit dba8478
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ class BasicLoomTest {
@RegisterExtension
val platform = PlatformRule()

// Use mock server so we are strictly testing OkHttp client only in this test.
// We should test MockWebServer later.
@Container
val mockServer: MockServerContainer = MockServerContainer(MOCKSERVER_IMAGE)

Expand All @@ -71,6 +73,8 @@ class BasicLoomTest {

executor = newVirtualThreadPerTaskExecutor()

// Capture non-deterministic but probable sysout warnings of pinned threads
// https://docs.oracle.com/en/java/javase/21/core/virtual-threads.html
System.setOut(PrintStream(capturedOut))
}

Expand Down

0 comments on commit dba8478

Please sign in to comment.