Skip to content

Commit 0c9f2f7

Browse files
committed
Correct test variable initialisation
1 parent a360e12 commit 0c9f2f7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

TerrariaServerAPI.Tests/BaseTest.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ public void EnsureInitialised()
2020
invoked = true;
2121
// DedServ typically requires input, so no need to continue execution
2222
args.ContinueExecution = false;
23+
// DedServ calls the following method, which is needed for subsequent tests
24+
instance.Initialize();
2325
};
2426
HookEvents.Terraria.Main.DedServ += cb;
2527

0 commit comments

Comments
 (0)