kolide / launcher

Osquery launcher, autoupdater, and packager
https://kolide.com/launcher
Other
500 stars 99 forks source link

Correct expectations for testing flag change during delay #1646

Closed RebeccaMahany closed 4 months ago

RebeccaMahany commented 4 months ago

This test has been flaky in the pipeline -- see, e.g., https://github.com/kolide/launcher/actions/runs/8193945849/job/22408849563.

The way I wrote the test initially was confusing and tested more than needed, and as a result failed in the pipeline sometimes. I've pared it down so it validates that autoupdate checks won't occur if FlagsChanged triggers during the initial delay.