-
Notifications
You must be signed in to change notification settings - Fork 115
(#3843) bugfix: increase timeout to 1 second in TestConfigFile #3849
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
Conversation
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.
The timeout change seems sensible; it only extends the duration of failing test runs.
Question on the other bit.
dfe777a
to
883d414
Compare
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.
This affects both tests that expect a load and those that do not expect a load. Extending the runtime of, e.g., TestConfigFile.with_no_reloading_when_a_file_is_written_nothing_is_loaded
to 10s is excessive.
Maybe we need two wait periods? (And 10s seems overkill anyway)
883d414
to
a60a36d
Compare
I made the wait period 1 second instead. If we have two wait periods, that would be unfair to one of the wait periods (i.e. we're giving some tests a fighting chance to see a file change event, while other tests technically might not have that same chance) |
a60a36d
to
d56bbb7
Compare
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'd tone it down a bit, but won't block
tests/miral/config_file.cpp
Outdated
{ | ||
std::cerr << "wait_for_load() timed out" << std::endl; | ||
} | ||
} | ||
|
||
void wait_to_ensure_no_load() |
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.
Maybe this name is a bit verbose? wait_for_nothing()
?
d56bbb7
to
ee744fc
Compare
😞 this wasn't enough (but that does makes me wonder if the timeout is the real problem here)
From this run |
I saw that you marked this as "obsolete". Are you just saying that the link is "obsolete"? Or is the whole problem "obsolete"? |
I marked my earlier "approval" as obsolete as the problem isn't fixed |
853ac04
to
83298b9
Compare
fixes #3843
So this test (and its kin) rely on a bit of a timing. The order of events is:
Steps 3 and 4 currently have to happen within 10ms. This is likely to happen more often than not. However, if a machine has a slow moment, this could be too little time. My recommendation here is to increase that timeout.
What's new?