mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-22 18:56:31 +00:00
Fix sporadic race condition in update notifier test suite (#476)
We rely on a millisecond to determine the state of the update notifier logic, which can fail at least once per 50 builds or so. We increase the time difference to account for this little room for error. Signed-off-by: Juan Cruz Viotti <jviottidc@gmail.com>
This commit is contained in:
parent
fbe6fe1142
commit
4e9c25a1dd
@ -73,7 +73,7 @@ describe('Browser: UpdateNotifier', function() {
|
||||
describe('given the `lastUpdateNotify` was updated long ago', function() {
|
||||
|
||||
beforeEach(function() {
|
||||
SettingsModel.data.lastUpdateNotify = Date.now() + UPDATE_NOTIFIER_SLEEP_TIME + 1;
|
||||
SettingsModel.data.lastUpdateNotify = Date.now() + UPDATE_NOTIFIER_SLEEP_TIME + 1000;
|
||||
});
|
||||
|
||||
it('should return true', function() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user