Skip to content

Commit bf59b14

Browse files
committed
RM-35685: Fixed the tics-cli test failing in a github environment
1 parent f0af0f6 commit bf59b14

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

test/unit/configuration/tics-cli.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,16 @@ describe('cli Configuration', () => {
8181
project: 'auto'
8282
};
8383

84+
const GITHUB_WORKSPACE = process.env.GITHUB_WORKSPACE;
85+
delete process.env.GITHUB_WORKSPACE;
8486
let error: any;
8587
try {
8688
new TicsCli(Mode.QSERVER);
8789
} catch (err) {
8890
error = err;
8991
}
9092

93+
process.env.GITHUB_WORKSPACE = GITHUB_WORKSPACE;
9194
expect(error).toBeInstanceOf(Error);
9295
expect(error.message).toContain('Parameter `branchdir` is not set and environment variable `GITHUB_WORKSPACE` is empty. TICSQServer cannot run.');
9396
});

0 commit comments

Comments
 (0)