Skip to content

Commit 89b577e

Browse files
author
DvirDukhan
committed
fixed llapi+gears
1 parent a1b81a3 commit 89b577e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/flow/tests_gears_llapi.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88

99
def verify_gears_loaded(env):
10-
con = env.getConnection()
10+
con = get_connection(env, '{1}')
1111
modules = con.execute_command("MODULE", "LIST")
1212
if b'rg' in [module[1] for module in modules]:
1313
return True
@@ -416,7 +416,7 @@ def FlattenTensor(record):
416416
GB("CommandReader").map(FlattenTensor).register(trigger="FlattenTensor_test")
417417
'''
418418

419-
con = env.getConnection()
419+
con = get_connection(env, '{1}')
420420
ret = con.execute_command('rg.pyexecute', script)
421421
env.assertEqual(ret, b'OK')
422422
ret = con.execute_command('rg.trigger', 'FlattenTensor_test')

tests/flow/tests_llapi.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
def with_test_module(f):
1212
@wraps(f)
1313
def wrapper(env, *args, **kwargs):
14-
con = env.getConnection()
14+
con = get_connection(env, '{1}')
1515
modules = con.execute_command("MODULE", "LIST")
1616
if b'RAI_llapi' in [module[1] for module in modules]:
1717
return f(env, *args, **kwargs)
@@ -29,7 +29,7 @@ def wrapper(env, *args, **kwargs):
2929
@with_test_module
3030
def test_basic_check(env):
3131

32-
con = env.getConnection()
32+
con = get_connection(env, '{1}')
3333
ret = con.execute_command("RAI_llapi.basic_check")
3434
env.assertEqual(ret, b'OK')
3535

0 commit comments

Comments
 (0)