Skip to content
This repository was archived by the owner on Dec 19, 2023. It is now read-only.

Commit 5b84530

Browse files
fix: tests may fail because of uncleared system property
GitHub Actions running on Unbuntu seems to be affected.
1 parent ac9ea12 commit 5b84530

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

graphql-kickstart-spring-boot-autoconfigure-tools/src/test/java/graphql/kickstart/tools/boot/GraphQLToolsDirectiveTest.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import graphql.schema.GraphQLObjectType;
55
import graphql.schema.idl.SchemaDirectiveWiring;
66
import graphql.schema.idl.SchemaDirectiveWiringEnvironment;
7+
import org.junit.After;
78
import org.junit.Test;
89
import org.springframework.context.annotation.Bean;
910
import org.springframework.context.annotation.Configuration;
@@ -15,6 +16,11 @@ public GraphQLToolsDirectiveTest() {
1516
super(GraphQLJavaToolsAutoConfiguration.class);
1617
}
1718

19+
@After
20+
public void clear() {
21+
System.clearProperty("graphql.tools.schemaLocationPattern");
22+
}
23+
1824
@Test
1925
public void directiveIsLoaded() {
2026
System.setProperty("graphql.tools.schemaLocationPattern", "graphql/schema-directive-test.graphql");

0 commit comments

Comments
 (0)