Skip to content

Commit 6c58b0b

Browse files
committed
test: skip the flaky test
1 parent 1ddd8ec commit 6c58b0b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/core/src/testInteg/codecatalyst/devEnv.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ describe('InactivityMessage', function () {
6969
])
7070
})
7171

72-
it('shows warning 5 minutes before shutdown for 60 minute timeout', async function () {
72+
it.skip('shows warning 5 minutes before shutdown for 60 minute timeout', async function () {
7373
setInitialOffset(54)
7474
await inactivityMsg.init(60, devEnvActivity as unknown as DevEnvActivity, relativeMinuteMillis)
7575

@@ -142,10 +142,10 @@ describe('InactivityMessage', function () {
142142
minute: expectedMessages[i][1],
143143
}
144144
assert.deepStrictEqual(actualMessages[i].message, expected.message)
145-
// Avoid flakiness in the timing by looking within a few minutes rather than exact.
145+
// Avoid flakiness in the timing by looking within a minute rather than exact.
146146
assert.ok(
147-
Math.abs(actualMessages[i].minute - expected.minute) <= 3,
148-
`Expected to be within 180 seconds of minute ${expected.minute}, but instead was at minute ${actualMessages[i].minute}`
147+
Math.abs(actualMessages[i].minute - expected.minute) <= 1,
148+
`Expected to be within 60 seconds of minute ${expected.minute}, but instead was at minute ${actualMessages[i].minute}`
149149
)
150150
}
151151
}

0 commit comments

Comments
 (0)