Skip to content

Commit e356d55

Browse files
test: convert MessageOrderingTests to a NetcodeIntegrationTest
MessageOrderingTests created and tore down its NetworkManagers with NetcodeIntegrationTestHelpers and replicated logic that NetcodeIntegrationTest already provides, such as waiting for an object to spawn on every client. It now derives from NetcodeIntegrationTest, runs as both a host and a server, and uses WaitForSpawnedOnAllOrTimeOut and WaitForConditionOrTimeOut for every wait, so none of its waits can pass without the condition being met. test: use the NetcodeIntegrationTest spawn helpers in MessageOrderingTests SpawnChangeOwnership counted NetworkObjectTestComponent instances to detect the spawn; it now spawns with SpawnObject, waits with WaitForSpawnedOnAllOrTimeOut, and also checks that the client owns the object. SpawnRpcDespawn spawns with SpawnObject, takes its expected client count from TotalClients, and reports which of its conditions was not met through the WaitForConditionOrTimeOut error log.
1 parent 58ccc17 commit e356d55

1 file changed

Lines changed: 101 additions & 254 deletions

File tree

0 commit comments

Comments
 (0)