Skip to content

Commit a87a800

Browse files
committed
Allow downgrade in auto-update-to tests
1 parent 33b559a commit a87a800

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/compass-smoke-tests/src/tests/auto-update-to.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ export async function testAutoUpdateTo(context: SmokeTestsContext) {
4242

4343
try {
4444
process.env.PORT = '0'; // dynamic port
45+
process.env.UPDATE_CHECKER_ALLOW_DOWNGRADES = 'true';
4546

4647
if (channel === 'dev') {
4748
process.env.DEV_RELEASE = JSON.stringify({
@@ -95,6 +96,7 @@ export async function testAutoUpdateTo(context: SmokeTestsContext) {
9596
server.close();
9697
delete process.env.DEV_RELEASE;
9798
delete process.env.PUBLISHED_RELEASES;
99+
delete process.env.UPDATE_CHECKER_ALLOW_DOWNGRADES;
98100
}
99101
} finally {
100102
await uninstall();

0 commit comments

Comments
 (0)