Skip to content

test[NetworkVariable]: adjusting netvars manual tests #583

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

Merged
merged 1 commit into from
Mar 10, 2021

Conversation

jeffreyrainy
Copy link
Contributor

No description provided.

@JesseOlmer JesseOlmer changed the title fix: adjusting netvars manual tests test[NetworkVariable]: adjusting netvars manual tests Mar 10, 2021
Copy link
Contributor

@0xFA11 0xFA11 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just parking my 🚀 here

if (m_Problems == "" && Math.Abs(m_MaxDelta - m_MinDelta) < 3)
// Let's be reasonable and allow a 5 tick difference
// that could be due to timing difference, lag, queueing
if (m_Problems == "" && Math.Abs(m_MaxDelta - m_MinDelta) < 5)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would tend to replace the '5' as a constant to show meaning, like k_MaxAllowedTickDifference, and then say why '5', but I'm glad to have this comment for now

@mattwalsh-unity mattwalsh-unity merged commit 0743a97 into release/0.1.0 Mar 10, 2021
@mattwalsh-unity mattwalsh-unity deleted the fix/netvar-manual-test branch March 10, 2021 21:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants