Skip to content

Commit 2c3cfd1

Browse files
mishushakovclaude
andcommitted
fix: increase background build test timeouts to reduce flakiness
The 10s timeout was too tight for the 2+ API roundtrips (requestBuild + triggerBuild) that buildInBackground makes before returning, causing frequent timeouts in CI especially on Production environments. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent cf35f61 commit 2c3cfd1

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

packages/js-sdk/tests/template/backgroundBuild.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ test('build template in background', async () => {
2222
// Verify the build is actually running
2323
const status = await Template.getBuildStatus(buildInfo)
2424
expect(status.status).toEqual('building')
25-
}, 10_000)
25+
}, 30_000)

packages/python-sdk/tests/async/template_async/test_background_build.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77

88
@pytest.mark.skip_debug()
9-
@pytest.mark.timeout(10)
9+
@pytest.mark.timeout(30)
1010
async def test_build_in_background_should_start_build_and_return_info():
1111
"""Test that build_in_background returns immediately without waiting for build to complete."""
1212
template = (

packages/python-sdk/tests/sync/template_sync/test_background_build.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77

88
@pytest.mark.skip_debug()
9-
@pytest.mark.timeout(10)
9+
@pytest.mark.timeout(30)
1010
def test_build_in_background_should_start_build_and_return_info():
1111
"""Test that build_in_background returns immediately without waiting for build to complete."""
1212
template = (

0 commit comments

Comments
 (0)