Skip to content

Commit 028d108

Browse files
committed
test runs on edge only
1 parent 0927ba8 commit 028d108

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

test/test.py

+10
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,12 @@ def check_version_2(env):
4747
return True
4848
return False
4949

50+
def check_edge(env):
51+
v = env.execute_command('MODULE LIST')[0][3]
52+
if v is "999999":
53+
return True
54+
return False
55+
5056
class RedisSearchTestCase(ModuleTestCase('../module.so')):
5157

5258
def createIndex(self, client, num_docs = 100, definition=None):
@@ -230,6 +236,8 @@ def testPayloads(self):
230236
conn = self.redis()
231237

232238
with conn as r:
239+
if not check_edge(r):
240+
return
233241
# Creating a client with a given index name
234242
client = Client('idx', port=conn.port)
235243
client.redis.flushdb()
@@ -802,6 +810,8 @@ def testGet(self):
802810

803811
def testConfig(self):
804812
client = self.getCleanClient('idx')
813+
if not check_edge(client.redis):
814+
return
805815
self.assertTrue(client.config_set('TIMEOUT', '100'))
806816
with self.assertRaises(redis.ResponseError) as error:
807817
client.config_set('TIMEOUT', "null")

0 commit comments

Comments
 (0)