Skip to content

Commit c4b03de

Browse files
committed
Fixed TravelHelper tests
1 parent e0dccc4 commit c4b03de

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

src/test/java/com/projectswg/holocore/test/runners/TestRunnerNoIntents.java

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
/***********************************************************************************
2-
* Copyright (c) 2018 /// Project SWG /// www.projectswg.com *
2+
* Copyright (c) 2025 /// Project SWG /// www.projectswg.com *
33
* *
4-
* ProjectSWG is the first NGE emulator for Star Wars Galaxies founded on *
4+
* ProjectSWG is an emulation project for Star Wars Galaxies founded on *
55
* July 7th, 2011 after SOE announced the official shutdown of Star Wars Galaxies. *
6-
* Our goal is to create an emulator which will provide a server for players to *
7-
* continue playing a game similar to the one they used to play. We are basing *
8-
* it on the final publish of the game prior to end-game events. *
6+
* Our goal is to create one or more emulators which will provide servers for *
7+
* players to continue playing a game similar to the one they used to play. *
98
* *
109
* This file is part of Holocore. *
1110
* *
@@ -27,22 +26,27 @@
2726

2827
package com.projectswg.holocore.test.runners;
2928

29+
import com.projectswg.holocore.utilities.HolocoreCoroutine;
3030
import me.joshlarson.jlcommon.control.IntentManager;
3131
import org.junit.jupiter.api.AfterEach;
3232
import org.junit.jupiter.api.BeforeEach;
3333

3434
public abstract class TestRunnerNoIntents extends TestRunner {
3535

3636
private static final IntentManager INTENT_MANAGER = new IntentManager(0);
37+
private HolocoreCoroutine holocoreCoroutine = null;
3738

3839
@BeforeEach
3940
public void initializeIntents() {
4041
IntentManager.setInstance(INTENT_MANAGER);
42+
holocoreCoroutine = new HolocoreCoroutine();
43+
HolocoreCoroutine.Companion.getINSTANCE().set(holocoreCoroutine);
4144
}
4245

4346
@AfterEach
4447
public void terminateIntents() {
4548
IntentManager.setInstance(null);
49+
holocoreCoroutine.close();
4650
}
4751

4852
}

0 commit comments

Comments
 (0)