-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Node: warp with try-catch the rust call and tests #2182
Conversation
95e2bfd
to
06941e9
Compare
node/src/BaseClient.ts
Outdated
resolve(resolveAns); | ||
resolve(resolveAns); | ||
} catch (err) { | ||
console.log(err); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we dont console log in prod code
use the logger
Signed-off-by: Adar Ovadia <adarov@amazon.com>
Signed-off-by: Adar Ovadia <adarov@amazon.com>
53a39af
to
1c32029
Compare
* warp with try-catch the rust call and tests * add test --------- Signed-off-by: Adar Ovadia <adarov@amazon.com> Co-authored-by: Adar Ovadia <adarov@amazon.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use the Geller field while going thru warp
* @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( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We already have this test
@@ -32,6 +32,7 @@ import { | |||
checkFunctionStatsResponse, | |||
convertStringArrayToBuffer, | |||
createLuaLibWithLongRunningFunction, | |||
DumpAndRestureTest, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Resture? Who is that?
@@ -242,6 +243,38 @@ describe("GlideClient", () => { | |||
}, | |||
); | |||
|
|||
it.each([ProtocolVersion.RESP2, ProtocolVersion.RESP3])( | |||
`dump and restore transactions_%p`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We alreayd have such test
Issue description - #2119
Warping the valueFromSplitPointer rust function with try-cache and adding tests