Skip to content

Commit

Permalink
Fix Prettier issues
Browse files Browse the repository at this point in the history
Signed-off-by: Jonathan Louie <[email protected]>
  • Loading branch information
jonathanl-bq committed Jan 7, 2025
1 parent 296d5cc commit 94967ef
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
9 changes: 5 additions & 4 deletions node/tests/GlideClusterClient.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -324,16 +324,17 @@ describe("GlideClusterClient", () => {
convertRecordToGlideRecord({ timeout: "1000" }),
]);

if (
!cluster.checkIfServerVersionLessThan("7.0.0")
) {
if (!cluster.checkIfServerVersionLessThan("7.0.0")) {
const transaction = new ClusterTransaction()
.configSet({ timeout: "2000", logfile: "foo" })
.configGet(["timeout", "logfile"]);
const result = await client.exec(transaction);
expect(result).toEqual([
"OK",
convertRecordToGlideRecord({ timeout: "2000", logfile: "foo" }),
convertRecordToGlideRecord({
timeout: "2000",
logfile: "foo",
}),
]);
}
},
Expand Down
15 changes: 9 additions & 6 deletions node/tests/SharedTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1244,19 +1244,22 @@ export function runBaseTests(config: {
const prevLogfile = (await client.configGet([
"logfile",
])) as Record<string, GlideString>;
expect(await client.configSet({ timeout: "1000", logfile: "foo" })).toEqual(
"OK",
);
expect(
await client.configSet({ timeout: "1000", logfile: "foo" }),
).toEqual("OK");
const currParameterValues = (await client.configGet([
"timeout",
"logfile"
"logfile",
])) as Record<string, GlideString>;
expect(currParameterValues).toEqual({ timeout: "1000", logfile: "foo" });
expect(currParameterValues).toEqual({
timeout: "1000",
logfile: "foo",
});
/// Revert to the previous configuration
expect(
await client.configSet({
timeout: prevTimeout["timeout"],
logfile: prevLogfile["logfile"]
logfile: prevLogfile["logfile"],
}),
).toEqual("OK");
}, protocol);
Expand Down

0 comments on commit 94967ef

Please sign in to comment.