-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Delay processing test event in Smoke CO Alarm #28044
Delay processing test event in Smoke CO Alarm #28044
Conversation
Hold on. This seems to be working around some bug in the test plan, but are all the actual devices supposed to work around this bug too? @cjandhyala |
not sure why we need that delay to triggerEvent. @ericzijian1994 any TH ticket that you filed ? |
Because TH is a slow test, it will wait a few seconds after sending the eventTrigger command before executing the waitForReport step. This would miss the timing of the attribute change, causing waitForReport to wait until it times out. So I added the timer to change the attribute 5 seconds after receiving the eventTrigger command. |
I don't know if this is a bug, maybe waitForReport needs to be optimized. @cjandhyala |
If waitForReport only sees reports that come after it starts, that's a problem. There are tons of tests that assume they can change a thing and then waitForReport.... @vivien-apple @cjandhyala |
And in particular: we can't expect real devices to delay processing like this! But we do want them to pass our cert tests. So if our cert tests are buggy we need to fix those bugs, not just work around them. |
Co-authored-by: Hare <[email protected]>
I totally agree we can not add delay in the SDK code to work around a TH issue. If you see any issue with TH, pls file ticket on TH. |
Looks like #19861 has already mentioned this. @cjandhyala |
This reverts commit 435aa96. Co-authored-by: Hare <[email protected]>
Because TH run step is slow, delay the processing of test event.