Skip to content

Commit

Permalink
Use hset instead of hmset at test kvrocks2redis (#2328)
Browse files Browse the repository at this point in the history
Co-authored-by: Twice <twice.mliu@gmail.com>
  • Loading branch information
aleksraiden and PragmaTwice authored May 27, 2024
1 parent b42259e commit ff05ed0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/kvrocks2redis/tests/check_consistency.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def _import_and_compare(self, num):
self.src_cli.incr(incr_key)
hash_key = f'hash_key_{i}'
hash_value = {'field1': f'field1_value_{i}', 'field2': f'field2_value_{i}'}
self.src_cli.hmset(hash_key, hash_value)
self.src_cli.hset(hash_key, mapping=hash_value)
set_key = f'set_key_{i}'
set_value = [f'set_value_{i}_1', f'set_value_{i}_2', f'set_value_{i}_3']
self.src_cli.sadd(set_key, *set_value)
Expand Down Expand Up @@ -129,4 +129,4 @@ def _import_and_compare(self, num):
args = parser.parse_args()

redis_comparator = RedisComparator(args.src_host, args.src_port, args.src_password, args.dst_host, args.dst_port, args.dst_password)
redis_comparator.compare_redis_data(args.key_file)
redis_comparator.compare_redis_data(args.key_file)

0 comments on commit ff05ed0

Please sign in to comment.