diff --git a/tests/common/nebula_test_suite.py b/tests/common/nebula_test_suite.py
index e3b718d3a5172a22851ee77621a4f994d571289a..663011e21ba00c5f1686a5751c24675888dc6af4 100644
--- a/tests/common/nebula_test_suite.py
+++ b/tests/common/nebula_test_suite.py
@@ -182,7 +182,7 @@ class NebulaTestSuite(object):
@classmethod
def check_resp_succeeded(self, resp):
assert (
- resp.is_succeeded
+ resp.is_succeeded()
or resp.error_code() == ttypes.ErrorCode.E_STATEMENT_EMPTY
), resp.error_msg()
@@ -190,12 +190,12 @@ class NebulaTestSuite(object):
def check_resp_failed(self, resp, error_code: ttypes.ErrorCode = ttypes.ErrorCode.SUCCEEDED):
if error_code == ttypes.ErrorCode.SUCCEEDED:
assert resp.error_code() != error_code, '{} == {}, {}'.format(
- ttypes.ErrorCode._VALUES_TO_NAMES[resp.error_code],
+ ttypes.ErrorCode._VALUES_TO_NAMES[resp.error_code()],
ttypes.ErrorCode._VALUES_TO_NAMES[error_code], resp.error_msg()
)
else:
assert resp.error_code() == error_code, '{} != {}, {}'.format(
- ttypes.ErrorCode._VALUES_TO_NAMES[resp.error_code],
+ ttypes.ErrorCode._VALUES_TO_NAMES[resp.error_code()],
ttypes.ErrorCode._VALUES_TO_NAMES[error_code], resp.error_msg()
)
diff --git a/tests/maintain/test_index.py b/tests/maintain/test_index.py
index ebbfe4664d7411252e308984d695faa91905bfd7..c1ad446e9abc05c197a075e3e318d40b94e1f4bc 100644
--- a/tests/maintain/test_index.py
+++ b/tests/maintain/test_index.py
@@ -291,7 +291,6 @@ class TestIndex(NebulaTestSuite):
if self.find_result(resp0, [['single_edge_index', 'FINISHED']]):
resp = self.client.execute('LOOKUP ON edge_1 WHERE edge_1.col2 == 22 YIELD edge_1.col2')
self.check_resp_succeeded(resp)
- print(resp0.data.rows)
expect = [['102', 0, '103', 22]]
self.check_out_of_order_result(resp, expect)