Skip to content

Commit f227147

Browse files
committed
Use AppOctokit in tests
1 parent 9b10a09 commit f227147

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

extensions/ql-vscode/test/factories/authentication.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { retry } from "@octokit/plugin-retry";
21
import * as Octokit from "@octokit/rest";
32
import { RequestInterface } from "@octokit/types/dist-types/RequestInterface";
43

54
import { Credentials } from "../../src/common/authentication";
5+
import { AppOctokit } from "../../src/common/octokit";
66

77
function makeTestOctokit(octokit: Octokit.Octokit): Credentials {
88
return {
@@ -38,5 +38,5 @@ export function testCredentialsWithStub(
3838
* optionally authenticated with a given token.
3939
*/
4040
export function testCredentialsWithRealOctokit(token?: string): Credentials {
41-
return makeTestOctokit(new Octokit.Octokit({ auth: token, retry }));
41+
return makeTestOctokit(new AppOctokit({ auth: token }));
4242
}

0 commit comments

Comments
 (0)