Skip to content

Commit

Permalink
Fix turbo mode in smoke test (testcontainers#7436)
Browse files Browse the repository at this point in the history
  • Loading branch information
eddumelendez authored Aug 23, 2023
1 parent a5669dd commit eaeb40b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
- name: Test using Testcontainers Cloud with Turbo Mode enabled
working-directory: ./smoke-test/
run: |
./gradlew --no-daemon --continue --scan --info ${{matrix.gradle_args}}
./gradlew check --no-daemon --continue --scan --info
find_gradle_jobs:
needs: [core]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,11 @@ class AbstractRedisContainer {
private static final String REDIS_IMAGE = "redis:7.0.12-alpine";

void runRedisContainer() {
try (GenericContainer<?> redis = new GenericContainer<>(REDIS_IMAGE).withExposedPorts(6379)
.withCreateContainerCmdModifier(cmd -> cmd.withName("tc-redis"))) {
try (
GenericContainer<?> redis = new GenericContainer<>(REDIS_IMAGE)
.withExposedPorts(6379)
.withCreateContainerCmdModifier(cmd -> cmd.withName("tc-redis"))
) {
redis.start();
assertThat(redis.isRunning()).isTrue();
}
Expand Down

0 comments on commit eaeb40b

Please sign in to comment.