Skip to content

Commit

Permalink
Use linked rather than latest in unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
angelapwen committed May 31, 2024
1 parent 67d5a9a commit 3b0d213
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions lib/codeql.test.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions lib/setup-codeql.test.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/codeql.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ test(`downloads bundle if only an unpinned version is cached on GHES`, async (t)
});
});

test('downloads bundle if "latest" tools specified but not cached', async (t) => {
test('downloads bundle if "linked" tools specified but not cached', async (t) => {
await util.withTmpDir(async (tmpDir) => {
setupActionsVars(tmpDir, tmpDir);

Expand All @@ -361,7 +361,7 @@ test('downloads bundle if "latest" tools specified but not cached', async (t) =>
tagName: defaults.bundleVersion,
});
const result = await codeql.setupCodeQL(
"latest",
"linked",
SAMPLE_DOTCOM_API_DETAILS,
tmpDir,
util.GitHubVariant.DOTCOM,
Expand Down
4 changes: 2 additions & 2 deletions src/setup-codeql.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,14 +113,14 @@ test("getCodeQLSource correctly returns bundled CLI version when tools == linked
});
});

test("getCodeQLSource correctly returns bundled CLI version when tools == latest", async (t) => {
test("getCodeQLSource correctly returns bundled CLI version when tools == linked", async (t) => {
const loggedMessages: LoggedMessage[] = [];
const logger = getRecordingLogger(loggedMessages);

await withTmpDir(async (tmpDir) => {
setupActionsVars(tmpDir, tmpDir);
const source = await setupCodeql.getCodeQLSource(
"latest",
"linked",
SAMPLE_DEFAULT_CLI_VERSION,
SAMPLE_DOTCOM_API_DETAILS,
GitHubVariant.DOTCOM,
Expand Down

0 comments on commit 3b0d213

Please sign in to comment.