valkey/tests
Binbin 1655576e23 Fix accidental deletion of sinterstore command when we meet wrong type error. (#9032)
SINTERSTORE would have deleted the dest key right away,
even when later on it is bound to fail on an (WRONGTYPE) error.

With this change it first picks up all the input keys, and only later
delete the dest key if one is empty.

Also add more tests for some commands.
Mainly focus on
- `wrong type error`:
	expand test case (base on sinter bug) in non-store variant
	add tests for store variant (although it exists in non-store variant, i think it would be better to have same tests)
- the dstkey result when we meet `non-exist key (empty set)` in *store

sdiff:
- improve test case about wrong type error (the one we found in sinter, although it is safe in sdiff)
- add test about using non-exist key (treat it like an empty set)
sdiffstore:
- according to sdiff test case, also add some tests about `wrong type error` and `non-exist key`
- the different is that in sdiffstore, we will consider the `dstkey` result

sunion/sunionstore add more tests (same as above)

sinter/sinterstore also same as above ...

(cherry picked from commit b8a5da80c4)
(cherry picked from commit f4702b8b7a7da6cc661ddb6744cb322bc92e3267)
2021-07-21 21:07:02 +03:00
..
assets Tests: Add aclfile load and save tests (#7765) 2020-09-10 14:09:00 +03:00
cluster fix race in cluster transactions test (#8312) 2021-01-12 16:25:37 +02:00
helpers revert an accidental test code change done as part of the tls project 2019-12-01 16:10:09 +02:00
integration unregister AE_READABLE from the read pipe in backgroundSaveDoneHandlerSocket (#8991) 2021-07-21 21:07:02 +03:00
modules RM_ZsetRem: Delete key if empty (#8453) 2021-02-23 01:35:37 +02:00
sentinel Recalculate hardcoded variables from $::instances_count in sentinel tests (#7561) 2020-10-27 09:12:01 +02:00
support prevent client tracking from causing feedback loop in performEvictions (#8100) 2021-01-12 16:25:37 +02:00
tmp minor fixes to the new test suite, html doc updated 2010-05-14 18:48:33 +02:00
unit Fix accidental deletion of sinterstore command when we meet wrong type error. (#9032) 2021-07-21 21:07:02 +03:00
instances.tcl Allow blocked XREAD on a cluster replica (#7881) 2020-10-27 09:12:01 +02:00
test_helper.tcl Add a --no-latency tests flag. (#7939) 2020-10-27 09:12:01 +02:00