Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: Fix testLifecycleOperationsUser restart test
The old "pid changed" waiting loop was completely broken, as the old pid wasn't stripped (thus ending in `\n`), while the new one was. Thus the wait condition was immediately true. Nevertheless, it's not enough to wait for the system state to change, as the UI gets updated asynchronously. The restart events leaked into the following "Force stop" check, and caused unexpected UI changes. There is no steady state change visible in the UI after a restart. Expose the "Pid" and "StartedAt" properties as additional data properties, and use them in the test to wait until the UI actually caught up with the restart. Also, drop the unnecessary no-op filter change, the filter is already set to "All".
- Loading branch information