Skip to content

Commit

Permalink
Merge conflicts
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Carbonetto <[email protected]>
  • Loading branch information
acarbonetto committed Sep 11, 2024
1 parent 1f1efb7 commit d9ce867
Showing 1 changed file with 17 additions and 19 deletions.
36 changes: 17 additions & 19 deletions node/tests/GlideClient.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,25 +217,23 @@ describe("GlideClient", () => {
);

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

validateTransactionResponse(result, expectedRes);
client.close();
Expand Down

0 comments on commit d9ce867

Please sign in to comment.