Skip to content

Commit f3f345a

Browse files
committed
Support integration testing of non-stable releases
1 parent 2d25c68 commit f3f345a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/integration-test.spec.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,16 @@ async function setupServerPath() {
2121
// If TEST_BUILT_TARBALL is set, test the latest built ready-to-go tarball:
2222
const tmpDir = tmp.dirSync({ unsafeCleanup: true }).name;
2323
const version = require(path.join('..', 'package.json')).version;
24+
25+
const channel = version.split('-')[1] || '';
26+
2427
const tarballPath = path.join(
2528
__dirname,
2629
'..',
2730
'build',
2831
'dist',
2932
`v${version}`,
30-
`httptoolkit-server-v${version}-${process.platform}-${process.arch}.tar.gz`
33+
`${channel ? channel + '-' : ''}httptoolkit-server-v${version}-${process.platform}-${process.arch}.tar.gz`
3134
);
3235

3336
console.log('Extracting built tarball to', tmpDir);

0 commit comments

Comments
 (0)