Skip to content

Commit 9937dd7

Browse files
Skip UpdatePowerShell tests in CI (#3674)
The rate limiting is in fact hit, though not on macOS as the previous comment indicated, but on Windows, as the previous code indicated. To be honest, it's not a super important test, but it's now failing CI.
1 parent fc5d1c2 commit 9937dd7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/features/UpdatePowerShell.test.ts

+5
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ import * as assert from "assert";
55
import { GitHubReleaseInformation } from "../../src/features/UpdatePowerShell";
66

77
describe("UpdatePowerShell feature", function () {
8+
before(function () {
9+
// NOTE: GitHub API is rate limited in CI
10+
if (process.env.TF_BUILD) { this.skip(); }
11+
});
12+
813
it("Gets the latest version", async function () {
914
const release: GitHubReleaseInformation = await GitHubReleaseInformation.FetchLatestRelease(false);
1015
assert.strictEqual(release.isPreview, false, "expected to not be preview.");

0 commit comments

Comments
 (0)