aboutsummaryrefslogtreecommitdiffstats
path: root/vespa-osgi-testrunner
diff options
context:
space:
mode:
Diffstat (limited to 'vespa-osgi-testrunner')
-rw-r--r--vespa-osgi-testrunner/src/main/java/com/yahoo/vespa/testrunner/JunitRunner.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/vespa-osgi-testrunner/src/main/java/com/yahoo/vespa/testrunner/JunitRunner.java b/vespa-osgi-testrunner/src/main/java/com/yahoo/vespa/testrunner/JunitRunner.java
index 7e3f61c5c0f..70737859342 100644
--- a/vespa-osgi-testrunner/src/main/java/com/yahoo/vespa/testrunner/JunitRunner.java
+++ b/vespa-osgi-testrunner/src/main/java/com/yahoo/vespa/testrunner/JunitRunner.java
@@ -2,6 +2,7 @@
package com.yahoo.vespa.testrunner;
import ai.vespa.cloud.Environment;
+import ai.vespa.cloud.SystemInfo;
import ai.vespa.cloud.Zone;
import ai.vespa.hosted.api.TestDescriptor;
import ai.vespa.hosted.cd.internal.TestRuntimeProvider;
@@ -52,10 +53,10 @@ public class JunitRunner extends AbstractComponent implements TestRunner {
public JunitRunner(OsgiFramework osgiFramework,
JunitTestRunnerConfig config,
TestRuntimeProvider testRuntimeProvider,
- Zone zone) {
+ SystemInfo systemInfo) {
this.testRuntimeProvider = testRuntimeProvider;
this.bundleContext = getUnrestrictedBundleContext(osgiFramework);
- uglyHackSetCredentialsRootSystemProperty(config, zone);
+ uglyHackSetCredentialsRootSystemProperty(config, systemInfo.zone());
}
// Hack to retrieve bundle context that allows access to other bundles