mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-11-30 02:48:45 +08:00
Refine the long statement (#7879)
Signed-off-by: Binbin Lv <binbin.lv@zilliz.com>
This commit is contained in:
parent
b965767e5c
commit
9215f0c33f
@ -1981,7 +1981,8 @@ class TestCreateCollection:
|
||||
code = getattr(e, 'code', "The exception does not contain the field of code.")
|
||||
assert code == 1
|
||||
message = getattr(e, 'message', "The exception does not contain the field of message.")
|
||||
assert message == "Create collection failed: meta table add collection failed,error = collection %s exist" % collection
|
||||
assert message == "Create collection failed: meta table add collection failed," \
|
||||
"error = collection %s exist" % collection
|
||||
|
||||
@pytest.mark.tags(CaseLabel.L0)
|
||||
def test_create_collection_after_insert_flush(self, connect, collection):
|
||||
@ -1998,7 +1999,8 @@ class TestCreateCollection:
|
||||
code = getattr(e, 'code', "The exception does not contain the field of code.")
|
||||
assert code == 1
|
||||
message = getattr(e, 'message', "The exception does not contain the field of message.")
|
||||
assert message == "Create collection failed: meta table add collection failed,error = collection %s exist" % collection
|
||||
assert message == "Create collection failed: meta table add collection failed," \
|
||||
"error = collection %s exist" % collection
|
||||
|
||||
@pytest.mark.tags(CaseLabel.L2)
|
||||
def test_create_collection_multithread(self, connect):
|
||||
|
Loading…
Reference in New Issue
Block a user