-
Notifications
You must be signed in to change notification settings - Fork 450
test: connection approval and invalid NetworkPrefabs within NetworkConfig.NetworkPrefabs #825
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test: connection approval and invalid NetworkPrefabs within NetworkConfig.NetworkPrefabs #825
Conversation
Just removing the exception within the try catch as it isn't needed for this test.
public void Setup() | ||
{ | ||
// Create, instantiate, and host | ||
Assert.IsTrue(NetworkManagerHelper.StartNetworkManager(out _,NetworkManagerHelper.NetworkManagerOperatingMode.None)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@NoelStephensUnity @TwoTenPvP I like these helpers to simplify unit tests, but I think we may now have 2 sets of helpers. Is this right? Can we merge them into one?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is a good idea.
m_IsValidated = false; | ||
NetworkManagerHelper.NetworkManagerObject.StartHost(); | ||
|
||
var timeOut = Time.realtimeSinceStartup + 3.0f; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume these 3.0 & 0.01 time values have a rationale to them and are compatible with how things operate on Yamato?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep... it was a "wild guess" of what to realistically expect Yamato's read/write times when under a heavy load (worst case scenario)...so far it seems to be working out ok... :)
Adding a connection approval handler non-multi-NetworkManager unit test.
Added a regression test for PR-818.