Skip to content

Commit

Permalink
[#227] Fix inconsistent test failures
Browse files Browse the repository at this point in the history
  • Loading branch information
Evgenii Grigorev committed Feb 24, 2025
1 parent 0cb0455 commit 96cb1be
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ public class CoreConfigProperies {
}
}

public static void set(String name, String value) {
prop.setProperty(name, value);
}

public static String get(String name) {
String value = prop.getProperty(name);
if (value == null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import cz.cvut.spipes.config.WebAppConfig;
import cz.cvut.spipes.engine.VariablesBinding;
import cz.cvut.spipes.rest.util.ReservedParams;
import cz.cvut.spipes.util.CoreConfigProperies;
import cz.cvut.spipes.util.RDFMimeType;
import lombok.extern.slf4j.Slf4j;
import org.apache.jena.rdf.model.Model;
Expand Down Expand Up @@ -63,6 +64,7 @@ public void setUp() {
public void testRunNoModule() throws Exception {
final RequestBuilder rb = get("/module");
mockMvc.perform(rb).andExpect(status().is4xxClientError());
CoreConfigProperies.set("contextsLoader.data.keepUpdated", "false");
}

@Test
Expand Down

0 comments on commit 96cb1be

Please sign in to comment.