Skip to content

Commit 1c3b8f9

Browse files
committed
Fix test on cluster: add tags to the (not existing) keys mentioned in the MULTI/LUA commands so they map to the same slot.
1 parent bad888c commit 1c3b8f9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/flow/tests_common.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ def test_lua_multi(env):
307307
con = env.getConnection()
308308
ret = con.execute_command('MULTI')
309309
env.assertEqual(ret, b'OK')
310-
ret = con.execute_command('AI.MODELRUN', "no_model", "INPUTS", "no_input", "OUTPUTS", "no_output")
310+
ret = con.execute_command('AI.MODELRUN', "no_model{1}", "INPUTS", "no_input{1}", "OUTPUTS", "no_output{1}")
311311
env.assertEqual(ret, b'QUEUED')
312312
try:
313313
ret = con.execute_command('EXEC')
@@ -316,8 +316,8 @@ def test_lua_multi(env):
316316
env.assertEqual(type(exception), redis.exceptions.ResponseError)
317317
env.assertEqual("ERR Cannot run RedisAI command within a transaction or a LUA script", exception.__str__())
318318
try:
319-
ret = con.execute_command('EVAL', "return redis.pcall('AI.MODELRUN', 'no_model', 'INPUTS', 'NO_INPUT',"
320-
" 'OUTPUTS', 'NO_OUTPUT')", 0)
319+
ret = con.execute_command('EVAL', "return redis.pcall('AI.MODELRUN', 'no_model{1}', 'INPUTS', 'NO_INPUT{1}',"
320+
" 'OUTPUTS', 'NO_OUTPUT{1}')", 0)
321321
except Exception as e:
322322
exception = e
323323
env.assertEqual(type(exception), redis.exceptions.ResponseError)

0 commit comments

Comments
 (0)