Skip to content

Commit

Permalink
Fixed encode issue in transacation test
Browse files Browse the repository at this point in the history
  • Loading branch information
yipin-chen committed Jun 30, 2024
1 parent 376b360 commit 3798384
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions python/python/tests/test_transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,10 @@ async def transaction_test(
args.append(lib_name.encode())
transaction.function_load(code, True)
args.append(lib_name.encode())
transaction.fcall_ro(func_name, [], arguments=["one", "two"])
args.append(b"one")
transaction.fcall_ro(func_name, [key], arguments=["one", "two"])
args.append(b"one")
transaction.function_delete(lib_name)
args.append(OK)
transaction.function_flush()
Expand All @@ -116,12 +120,6 @@ async def transaction_test(
args.append(OK)
transaction.function_flush(FlushMode.SYNC)
args.append(OK)
transaction.function_load(code, True)
args.append(lib_name)
transaction.fcall_ro(func_name, [], arguments=["one", "two"])
args.append(b"one")
transaction.fcall_ro(func_name, [key], arguments=["one", "two"])
args.append(b"one")

transaction.dbsize()
args.append(0)
Expand Down

0 comments on commit 3798384

Please sign in to comment.