fix(test): extend timeout for resume sync test
MIN_STABILITY_TIME_MS is 5000ms in implementation, but test timeout was only 5000ms. Extended to 10000ms to allow proper polling completion.
This commit is contained in:
parent
adb1a9fcb9
commit
e35a488cf6
@ -259,6 +259,7 @@ describe("sisyphus-task", () => {
|
|||||||
|
|
||||||
describe("resume with background parameter", () => {
|
describe("resume with background parameter", () => {
|
||||||
test("resume with background=false should wait for result and return content", async () => {
|
test("resume with background=false should wait for result and return content", async () => {
|
||||||
|
// Note: This test needs extended timeout because the implementation has MIN_STABILITY_TIME_MS = 5000
|
||||||
// #given
|
// #given
|
||||||
const { createSisyphusTask } = require("./tools")
|
const { createSisyphusTask } = require("./tools")
|
||||||
|
|
||||||
@ -319,7 +320,7 @@ describe("sisyphus-task", () => {
|
|||||||
// #then - should contain actual result, not just "Background task resumed"
|
// #then - should contain actual result, not just "Background task resumed"
|
||||||
expect(result).toContain("This is the resumed task result")
|
expect(result).toContain("This is the resumed task result")
|
||||||
expect(result).not.toContain("Background task resumed")
|
expect(result).not.toContain("Background task resumed")
|
||||||
})
|
}, { timeout: 10000 })
|
||||||
|
|
||||||
test("resume with background=true should return immediately without waiting", async () => {
|
test("resume with background=true should return immediately without waiting", async () => {
|
||||||
// #given
|
// #given
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user