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 a276fda commit 2e9f3b1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions node/tests/GlideClient.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ import {
convertStringArrayToBuffer,
createLongRunningLuaScript,
createLuaLibWithLongRunningFunction,
DumpAndRestureTest,
encodableTransactionTest,
encodedTransactionTest,
flushAndCloseClient,
Expand Down Expand Up @@ -247,7 +246,7 @@ describe("GlideClient", () => {
getClientConfigurationOption(cluster.getAddresses(), protocol),
);
const bytesTransaction = new Transaction();
const expectedBytesRes = await DumpAndRestureTest(
const expectedBytesRes = await DumpAndRestoreTest(
bytesTransaction,
Buffer.from("value"),
);
Expand All @@ -260,7 +259,7 @@ describe("GlideClient", () => {
validateTransactionResponse(result, expectedBytesRes);

const stringTransaction = new Transaction();
await DumpAndRestureTest(stringTransaction, "value");
await DumpAndRestoreTest(stringTransaction, "value");
stringTransaction.select(0);

// Since DUMP gets binary results, we cannot use the string decoder here, so we expected to get an error.
Expand Down
4 changes: 2 additions & 2 deletions node/tests/TestUtilities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ import {
GeospatialData,
GlideClient,
GlideClusterClient,
GlideReturnType,
GlideString,
InfBoundary,
InsertPosition,
ListDirection,
ProtocolVersion,
GlideReturnType,
ReturnTypeMap,
ScoreFilter,
SignedEncoding,
Expand Down Expand Up @@ -653,7 +653,7 @@ export async function encodedTransactionTest(
* @param valueResponse - Represents the encoded response of "value" to compare
* @returns Array of tuples, where first element is a test name/description, second - expected return value.
*/
export async function DumpAndRestureTest(
export async function DumpAndRestoreTest(
baseTransaction: Transaction,
valueResponse: GlideString,
): Promise<[string, GlideReturnType][]> {
Expand Down

0 comments on commit 2e9f3b1

Please sign in to comment.