Skip to content

Commit 3b55465

Browse files
committed
one yield tests
1 parent 4d5d7a5 commit 3b55465

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

com.unity.multiplayer.mlapi/Tests/Runtime/NetworkUpdateLoopTests.cs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,7 @@ public void Dispose()
6666
[UnityTest]
6767
public IEnumerator UpdateStagesPlain()
6868
{
69-
yield return null;
70-
71-
/*const int kNetInitializationIndex = 0;
69+
const int kNetInitializationIndex = 0;
7270
const int kNetEarlyUpdateIndex = 1;
7371
const int kNetFixedUpdateIndex = 2;
7472
const int kNetPreUpdateIndex = 3;
@@ -80,7 +78,7 @@ public IEnumerator UpdateStagesPlain()
8078
yield return new WaitForEndOfFrame();
8179
bool isTesting = false;
8280

83-
using (var plainScript = new MyPlainScript())
81+
/*using (var plainScript = new MyPlainScript())
8482
{
8583
plainScript.UpdateCallbacks = new NetworkUpdateCallbacks
8684
{
@@ -211,7 +209,7 @@ public IEnumerator UpdateStagesMixed()
211209
{
212210
yield return null;
213211

214-
/*const int kNetFixedUpdateIndex = 0;
212+
const int kNetFixedUpdateIndex = 0;
215213
const int kNetPreUpdateIndex = 1;
216214
const int kNetPreLateUpdateIndex = 2;
217215
int[] netUpdates = new int[3];
@@ -223,7 +221,7 @@ public IEnumerator UpdateStagesMixed()
223221
yield return new WaitForEndOfFrame();
224222
bool isTesting = false;
225223

226-
{
224+
/*{
227225
var gameObject = new GameObject($"{nameof(NetworkUpdateLoopTests)}.{nameof(UpdateStagesMixed)} (Dummy)");
228226
var gameScript = gameObject.AddComponent<MyGameScript>();
229227
gameScript.UpdateCallbacks = new NetworkUpdateCallbacks

0 commit comments

Comments
 (0)