Skip to content

Commit

Permalink
Ensure the reference config uses its own configuration (intermitent f…
Browse files Browse the repository at this point in the history
…ailure fix)

Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
  • Loading branch information
tomas-langer committed Jun 19, 2020
1 parent a5b2064 commit 3cf55b9
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
package io.helidon.config.mp;

import org.eclipse.microprofile.config.Config;
import org.eclipse.microprofile.config.ConfigProvider;
import org.eclipse.microprofile.config.spi.ConfigProviderResolver;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;

Expand All @@ -35,7 +35,10 @@ public class MpConfigReferenceTest {
static void initClass() {
System.setProperty("value2", VALUE_2);

config = ConfigProvider.getConfig();
config = ConfigProviderResolver.instance()
.getBuilder()
.addDefaultSources()
.build();
}

@Test
Expand Down

0 comments on commit 3cf55b9

Please sign in to comment.