Skip to content

Commit

Permalink
Set the number of threads for the GlobalHttpClient to 2 in HostProxyS…
Browse files Browse the repository at this point in the history
…pec. (#482)
  • Loading branch information
dvlato authored and mikkokar committed Oct 11, 2019
1 parent a19e30b commit 95d7ddf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions plugin-examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@

<maven.deploy.skip>true</maven.deploy.skip>

<rxjava.version>1.1.6</rxjava.version>
<testng.version>6.14.3</testng.version>
</properties>

<dependencyManagement>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class HostProxySpec : FeatureSpec() {
styxServer().removeRoutingObject("hostProxy")
}

threadCount("Styx-Client-Global") shouldBe 2 * Runtime.getRuntime().availableProcessors();
threadCount("Styx-Client-Global") shouldBe 2
}
}

Expand Down Expand Up @@ -385,7 +385,7 @@ class HostProxySpec : FeatureSpec() {
content: "Hello - HTTP"
""".trimIndent())

val client: StyxHttpClient = StyxHttpClient.Builder().build()
val client: StyxHttpClient = System.setProperty("io.netty.eventLoopThreads", "2").let {StyxHttpClient.Builder().build()}

val mockServer = MockOriginServer.create("", "", 0, HttpConnectorConfig(0))
.start()
Expand Down

0 comments on commit 95d7ddf

Please sign in to comment.