Refactor test case to always use config admin tracker
authorCarsten Ziegeler <cziegeler@apache.org>
Wed, 27 Feb 2013 14:27:06 +0000 (14:27 +0000)
committerCarsten Ziegeler <cziegeler@apache.org>
Wed, 27 Feb 2013 14:27:06 +0000 (14:27 +0000)
git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1450785 13f79535-47bb-0310-9956-ffa450edef68

src/test/java/org/apache/sling/installer/it/OsgiInstallerTestBase.java

index 9b14218..03b574f 100644 (file)
@@ -178,7 +178,7 @@ class OsgiInstallerTestBase implements FrameworkListener {
     }
 
     protected Configuration findConfiguration(String pid) throws Exception {
-       final ConfigurationAdmin ca = getService(ConfigurationAdmin.class);
+       final ConfigurationAdmin ca = this.waitForConfigAdmin(true);
        if (ca != null) {
                final Configuration[] cfgs = ca.listConfigurations(null);
                if (cfgs != null) {