Skip to content

Commit be60779

Browse files
fix failing tests
1 parent df9c628 commit be60779

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

test/unit/connection.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ INFO: SYNTAX_ERROR - Unexpected character at {"failingLine":42,"startOffset":120
291291
expect(paramsUsed).toHaveProperty("engine", "dummy");
292292
// Extra params in USE DATABASE are ignored
293293
// But in USE ENGINE, they are used
294-
expect(paramsUsed).not.toHaveProperty("other_param");
294+
expect(paramsUsed).toHaveProperty("other_param", "2");
295295
expect(paramsUsed).toHaveProperty("another_eng_param", "1");
296296
});
297297

test/unit/http.test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ describe.each([
114114
);
115115
server.use(
116116
rest.post(`https://${apiEndpoint}/engines`, (req, res, ctx) => {
117-
expect(req.headers.get("Firebolt-Protocol-Version")).toEqual("2.3");
117+
expect(req.headers.get("Firebolt-Protocol-Version")).toEqual("2.4");
118118
return res(ctx.json({ ok: true }));
119119
})
120120
);
@@ -398,7 +398,8 @@ describe.each([
398398
calls++;
399399
return res(
400400
ctx.json({
401-
access_token: calls === 1 ? "fake_access_token_1" : "fake_access_token_2",
401+
access_token:
402+
calls === 1 ? "fake_access_token_1" : "fake_access_token_2",
402403
expires_in: 3600 // 1 hour
403404
})
404405
);

0 commit comments

Comments
 (0)