-
Notifications
You must be signed in to change notification settings - Fork 53
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: Changed SCRIPT KILL test to only test the command works, not that the script is actually being killed #2629
Conversation
de41090
to
59f786b
Compare
We discussed these tests with the team. The approach in these tests is incorrect in general - we're trying to test the server, instead of testing the client. valkey-glide/node/tests/GlideClient.test.ts Lines 1478 to 1480 in 76a5c10
This simple check is enough to test the client, all the rest can (should) be removed. |
Signed-off-by: barshaul <[email protected]>
59f786b
to
96bd2b2
Compare
good point! |
96bd2b2
to
60d020e
Compare
…at the script is actually being killed Signed-off-by: barshaul <[email protected]>
60d020e
to
9a5b331
Compare
@@ -1460,70 +1459,6 @@ describe("GlideClient", () => { | |||
TIMEOUT, | |||
); | |||
|
|||
it.each([ProtocolVersion.RESP2, ProtocolVersion.RESP3])( |
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.
Do we think that this test is not relevant at all?
Is it true for what @shohamazon is working on as well?
Changed Node's SCRIPT KILL test to test only that the command works, not that a script is actually being killed (to test the client and not the server). Moved to SharedTests.
Issue link
This Pull Request is linked to issue (URL): closes #2625
Checklist
Before submitting the PR make sure the following are checked: