test(MTE)! set default NetworkMode to NONE #5041
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This changes MTE's default network mode from LISTEN_SERVER to NONE.
I expect this to provide in increased reliability and speed for most MTE tests, as it removes the question of whether the server port is available and the delay on network shutdown.
Those few tests that do use
createClient
will need to adjust by setting their NetworkMode to LISTEN_SERVER or DEDICATED_SERVER.The other potential incompatibility is that NONE does start with a Player; LISTEN_SERVER did not. That may be a problem if the environment does not provide a place for the player to spawn.
(Currently, we do not have any way of starting without either a network server or a player.)
Related:
createClient
.How to test
Run
integrationTest
in modules. Note only modules that import MTE fromengine.integrationtest
will be affected; check for module pull requests linked to #5010.