Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Carbonetto <[email protected]>
  • Loading branch information
acarbonetto committed Sep 12, 2024
1 parent d4bde18 commit a276fda
Showing 1 changed file with 1 addition and 20 deletions.
21 changes: 1 addition & 20 deletions node/tests/GlideClient.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -233,32 +233,13 @@ describe("GlideClient", () => {
decoder,
);
transaction.select(0);
const result = await client.exec(transaction, decoder);
const result = await client.exec(transaction, { decoder });
expectedRes.push(["select(0)", "OK"]);

validateTransactionResponse(result, expectedRes);
client.close();
});

it.each([ProtocolVersion.RESP2, ProtocolVersion.RESP3])(
`can get Bytes decoded transactions_%p`,
async (protocol) => {
client = await GlideClient.createClient(
getClientConfigurationOption(cluster.getAddresses(), protocol),
);
const transaction = new Transaction();
const expectedRes = await encodedTransactionTest(transaction);
transaction.select(0);
const result = await client.exec(transaction, {
decoder: Decoder.Bytes,
});
expectedRes.push(["select(0)", "OK"]);

validateTransactionResponse(result, expectedRes);
client.close();
},
);

it.each([ProtocolVersion.RESP2, ProtocolVersion.RESP3])(
`dump and restore transactions_%p`,
async (protocol) => {
Expand Down

0 comments on commit a276fda

Please sign in to comment.