Skip to content

Commit 2542dd0

Browse files
Strum355claude
andcommitted
chore(test): remove GITHUB_ACTIONS timeout ternaries
Use the larger timeout value unconditionally instead of branching on the CI environment variable. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 2e1f281 commit 2542dd0

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

test/providers/javascript.test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ suite('testing the javascript-npm data provider', async () => {
9090

9191
compareSboms(providedDataForStack.content, expectedSbom);
9292

93-
}).timeout(process.env.GITHUB_ACTIONS ? 30000 : 10000);
93+
}).timeout(30000);
9494
test(`verify package.json data provided for ${providerName} - component analysis - ${scenario}`, async () => {
9595
// load the expected list for the scenario
9696
let expectedSbom = fs.readFileSync(`test/providers/tst_manifests/js-common/${testCase}/component_expected_sbom.json`,).toString().trim()
@@ -102,7 +102,7 @@ suite('testing the javascript-npm data provider', async () => {
102102
let providedDataForComponent = provider.provideComponent(manifestPath);
103103

104104
compareSboms(providedDataForComponent.content, expectedSbom);
105-
}).timeout(process.env.GITHUB_ACTIONS ? 15000 : 10000)
105+
}).timeout(15000)
106106

107107
});
108108

@@ -118,7 +118,7 @@ suite('testing the javascript-npm data provider', async () => {
118118
let providedDataForStack = provider.provideStack(manifestPath);
119119

120120
compareSboms(providedDataForStack.content, expectedSbom);
121-
}).timeout(process.env.GITHUB_ACTIONS ? 30000 : 10000);
121+
}).timeout(30000);
122122

123123
test(`verify workspace member data for ${providerName} - component analysis`, async () => {
124124
let expectedSbom = fs.readFileSync(`test/providers/tst_manifests/${providerName}/${testCase}/component_expected_sbom.json`).toString();
@@ -129,7 +129,7 @@ suite('testing the javascript-npm data provider', async () => {
129129
let providedDataForComponent = provider.provideComponent(manifestPath);
130130

131131
compareSboms(providedDataForComponent.content, expectedSbom);
132-
}).timeout(process.env.GITHUB_ACTIONS ? 15000 : 10000);
132+
}).timeout(15000);
133133
});
134134

135135
test('loads a valid manifest with ignored dependencies', () => {

0 commit comments

Comments
 (0)