Skip to content

Commit 7f332e3

Browse files
committed
Add retryCount to mocked Octokit responses
1 parent 39229c2 commit 7f332e3

3 files changed

Lines changed: 8 additions & 0 deletions

File tree

extensions/ql-vscode/test/unit-tests/variant-analysis/custom-errors.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ function mockRequestError(status: number, body: any): RequestError {
136136
"Content-Type": "application/json",
137137
},
138138
data: body,
139+
retryCount: 0,
139140
},
140141
},
141142
);

extensions/ql-vscode/test/vscode-tests/activated-extension/variant-analysis/variant-analysis-monitor.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,7 @@ describe("Variant Analysis Monitor", () => {
322322
headers: {},
323323
url: "",
324324
data: {},
325+
retryCount: 0,
325326
},
326327
}),
327328
);

extensions/ql-vscode/test/vscode-tests/no-workspace/databases/github-databases/api.test.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ describe("listDatabases", () => {
114114
headers: {},
115115
url: "",
116116
data: {},
117+
retryCount: 0,
117118
},
118119
}),
119120
);
@@ -140,6 +141,7 @@ describe("listDatabases", () => {
140141
headers: {},
141142
url: "",
142143
data: {},
144+
retryCount: 0,
143145
},
144146
}),
145147
);
@@ -188,6 +190,7 @@ describe("listDatabases", () => {
188190
headers: {},
189191
url: "",
190192
data: {},
193+
retryCount: 0,
191194
},
192195
}),
193196
);
@@ -221,6 +224,7 @@ describe("listDatabases", () => {
221224
headers: {},
222225
url: "",
223226
data: {},
227+
retryCount: 0,
224228
},
225229
}),
226230
);
@@ -257,6 +261,7 @@ describe("listDatabases", () => {
257261
headers: {},
258262
url: "",
259263
data: {},
264+
retryCount: 0,
260265
},
261266
}),
262267
);
@@ -283,6 +288,7 @@ describe("listDatabases", () => {
283288
headers: {},
284289
url: "",
285290
data: {},
291+
retryCount: 0,
286292
},
287293
}),
288294
);

0 commit comments

Comments
 (0)