From c2ba8ae5d141438d3c10464c6ee6311f40e46395 Mon Sep 17 00:00:00 2001 From: Elvis de Freitas Date: Mon, 2 Dec 2024 10:05:30 -0300 Subject: [PATCH] adjusting test --- .../java/com/mageddo/dnsproxyserver/config/ConfigTest.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/test/java/com/mageddo/dnsproxyserver/config/ConfigTest.java b/src/test/java/com/mageddo/dnsproxyserver/config/ConfigTest.java index 380d3cad0..562dae8b2 100644 --- a/src/test/java/com/mageddo/dnsproxyserver/config/ConfigTest.java +++ b/src/test/java/com/mageddo/dnsproxyserver/config/ConfigTest.java @@ -16,7 +16,9 @@ class ConfigTest { @Test void mustDeleteConfigFile(){ - final var config = Configs.getInstance(); + final var config = Configs.getContext() + .configService() + .findCurrentConfig(); final var configPath = config.getConfigPath(); assertTrue(Files.exists(configPath));