Skip to content

Commit cf62c80

Browse files
test-fix-fix
Fixing the bug in my previous fix.
1 parent f18beb7 commit cf62c80

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

com.unity.netcode.gameobjects/TestHelpers/Runtime/NetcodeIntegrationTest.cs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1156,6 +1156,9 @@ protected void ShutdownAndCleanUp()
11561156
// reset the m_ServerWaitForTick for the next test to initialize
11571157
s_DefaultWaitForTick = new WaitForSecondsRealtime(1.0f / k_DefaultTickRate);
11581158
VerboseDebug($"Exiting {nameof(ShutdownAndCleanUp)}");
1159+
1160+
// Assure any remaining NetworkManagers are destroyed
1161+
DestroyNetworkManagers();
11591162
}
11601163

11611164
protected IEnumerator CoroutineShutdownAndCleanUp()
@@ -1195,6 +1198,9 @@ protected IEnumerator CoroutineShutdownAndCleanUp()
11951198
// reset the m_ServerWaitForTick for the next test to initialize
11961199
s_DefaultWaitForTick = new WaitForSecondsRealtime(1.0f / k_DefaultTickRate);
11971200
VerboseDebug($"Exiting {nameof(ShutdownAndCleanUp)}");
1201+
1202+
// Assure any remaining NetworkManagers are destroyed
1203+
DestroyNetworkManagers();
11981204
}
11991205

12001206
/// <summary>
@@ -1244,8 +1250,7 @@ public IEnumerator TearDown()
12441250
VerboseDebug($"Exiting {nameof(TearDown)}");
12451251
LogWaitForMessages();
12461252
NetcodeLogAssert.Dispose();
1247-
// Assure any remaining NetworkManagers are destroyed
1248-
DestroyNetworkManagers();
1253+
12491254
}
12501255

12511256
/// <summary>

0 commit comments

Comments
 (0)