Skip to content

Commit

Permalink
Migrate Micronaut DefaultHttpClient create
Browse files Browse the repository at this point in the history
  • Loading branch information
puneetbehl committed Jul 18, 2022
1 parent bc83983 commit cc90935
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class ProfileControllerIntegrationSpec extends Specification {
HttpClientConfiguration config = new DefaultHttpClientConfiguration()
config.readTimeout = Duration.ofSeconds(120)

this.client = new DefaultHttpClient(baseUrl.toURL(), config)
this.client = HttpClient.create(baseUrl.toURL(), config)
}

void "test get profiles with curl"() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class VersionsControllerIntegrationSpec extends Specification {
HttpClientConfiguration config = new DefaultHttpClientConfiguration()
config.readTimeout = Duration.ofSeconds(120)

this.client = new DefaultHttpClient(baseUrl.toURL(), config)
this.client = HttpClient.create(baseUrl.toURL(), config)
}

void "test versions"() {
Expand Down

0 comments on commit cc90935

Please sign in to comment.