Skip to content

Commit

Permalink
Upgrade to test resources 2.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
melix committed Nov 30, 2023
1 parent d28f0a8 commit 60443dd
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ alpine="3.16"
graalvmPlugin = "0.9.28"
micronaut-platform = "4.2.0" # This is the platform version, used in our tests
micronaut-aot = "2.1.1"
micronaut-testresources = "2.2.0"
micronaut-testresources = "2.3.0"
micronaut-openapi = "6.2.2"
log4j2 = { require = "2.17.1", reject = ["]0, 2.17["] }
jetbrains-annotations = "24.1.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,17 @@ public abstract class StartTestResourcesService extends DefaultTask {
@Optional
public abstract Property<Integer> getClientTimeout();

/**
* Server idle timeout, in minutes. If the server
* doesn't receive any request for this amount of
* time, it will stop itself.
*
* @return the server idle timeout
*/
@Input
@Optional
public abstract Property<Integer> getServerIdleTimeoutMinutes();

/**
* Allows starting the test server in foreground
* instead of background, in which case the build
Expand Down Expand Up @@ -228,6 +239,7 @@ public void waitFor(Duration duration) throws InterruptedException {
cdsDir,
getClasspath().getFiles(),
getClientTimeout().getOrNull(),
getServerIdleTimeoutMinutes().getOrNull(),
serverFactory);
}

Expand Down

0 comments on commit 60443dd

Please sign in to comment.