We ignore the first iteration, and change the data in the backend
instead, and then run the second loop which should detect the change.
Details
- Reviewers
- None
- Group Reviewers
Syncroton Developers
Diff Detail
- Repository
- rS syncroton
- Branch
- dev/mollekopf
- Lint
Lint Skipped - Unit
No Test Coverage - Build Status
Buildable 53127 Build 18858: arc lint + arc unit
Event Timeline
That's not exactly the same as doing it in another client. I don't like the test code in Ping command code. Maybe create a php script that will sleep for a few seconds and then do the metadata update, which you could call using exec() before the Ping request in the test.
Also, it means the test will take 60 seconds (with default ping interval), right?
I'll try the exec variant. I also don't really like the current solution, but on the other hand tests that sleep are also always bound to break or be super slow (aka. they're brittle), this is at least deterministic.
Also, it means the test will take 60 seconds (with default ping interval), right?
No, we skip the sleep in the first iteration and then detect the change in the next iteration, so we don't actually go to sleep.