@@ -206,16 +206,16 @@ describe('ExtensionUserActivity', function () {
206
206
} )
207
207
208
208
it ( 'triggers twice when multiple user activities are fired in separate intervals' , async function ( ) {
209
- const throttleDelay = 200
209
+ const throttleDelay = 500
210
210
211
- const firstInvervalMillisUntilFire = [ 51 , 52 , 53 , 54 ]
211
+ const firstInvervalMillisUntilFire = [ 100 , 101 , 102 , 103 ]
212
212
213
213
const secondIntervalStart = firstInvervalMillisUntilFire [ 0 ] + throttleDelay + 1
214
214
const secondIntervalMillisUntilFire = [
215
- secondIntervalStart + 10 ,
216
- secondIntervalStart + 11 ,
217
- secondIntervalStart + 11 ,
218
- secondIntervalStart + 12 ,
215
+ secondIntervalStart + 200 ,
216
+ secondIntervalStart + 201 ,
217
+ secondIntervalStart + 201 ,
218
+ secondIntervalStart + 202 ,
219
219
]
220
220
221
221
const instance = new ExtensionUserActivity ( throttleDelay , [
@@ -225,7 +225,7 @@ describe('ExtensionUserActivity', function () {
225
225
instance . onUserActivity ( onEventTriggered )
226
226
await sleep ( secondIntervalStart + throttleDelay + 1 )
227
227
228
- assert . strictEqual ( count , 2 )
228
+ assert . strictEqual ( count , 2 , 'May be flaky in CI, increase timings to improve reliability.' )
229
229
} )
230
230
231
231
describe ( 'does not fire user activity events in specific scenarios' , function ( ) {
0 commit comments