Skip to content

Commit ef695f4

Browse files
committed
Cleanup on HttpURLConnectionTest
1 parent 8781eaa commit ef695f4

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

agent_api/src/test/java/wrappers/HttpURLConnectionTest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import dev.aikido.agent_api.context.Context;
44
import dev.aikido.agent_api.storage.Hostnames;
55
import dev.aikido.agent_api.storage.HostnamesStore;
6+
import dev.aikido.agent_api.storage.PendingHostnamesStore;
67
import dev.aikido.agent_api.storage.ServiceConfigStore;
78
import org.junit.jupiter.api.AfterEach;
89
import org.junit.jupiter.api.BeforeEach;
@@ -25,12 +26,14 @@ public class HttpURLConnectionTest {
2526
void cleanup() {
2627
Context.set(null);
2728
HostnamesStore.clear();
29+
PendingHostnamesStore.clear();
2830
}
2931

3032
@BeforeEach
3133
void beforeEach() {
3234
cleanup();
3335
ServiceConfigStore.updateBlocking(true);
36+
PendingHostnamesStore.clear();
3437
}
3538

3639
private void setContextAndLifecycle(String url) {

0 commit comments

Comments
 (0)