Skip to content

Commit

Permalink
fix broken tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ikhoon committed Oct 22, 2024
1 parent 3525953 commit 89745cc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
6 changes: 4 additions & 2 deletions it/zone-leader-plugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ dependencies {
testImplementation libs.curator.test
}

tasks.withType(Test) {
jvmArgs '--add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED'
if (project.ext.testJavaVersion >= 16) {
tasks.withType(Test) {
jvmArgs '--add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED'
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.linecorp.centraldogma.server;

class MyZoneProvider implements ZoneProvider {
final class MyZoneProvider implements ZoneProvider {

@Override
public String zone(String hostname) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@ void plainText() {
assertThat(ZoneResolver.resolve(null)).isNull();
}

/**
* This test should be run with the Gradle runner. It will not work with the IntelliJ runner.
*/
@SetEnvironmentVariable(key = "ZONE", value = "ZONE_A")
@SetEnvironmentVariable(key = "MY_ZONE", value = "ZONE_B")
@Test
Expand Down

0 comments on commit 89745cc

Please sign in to comment.