Skip unresolved cases and reslove warnings (#21677)

Signed-off-by: nico <cheng.yuan@zilliz.com>
pull/21724/head
NicoYuan1986 2023-01-14 14:47:41 +08:00 committed by GitHub
parent 32fb409e57
commit aecb7ea639
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 2 deletions

View File

@ -2243,6 +2243,7 @@ class TestLoadCollection(TestcaseBase):
yield request.param yield request.param
@pytest.mark.tags(CaseLabel.L2) @pytest.mark.tags(CaseLabel.L2)
@pytest.mark.xfail("issue #21618")
def test_load_replica_non_number(self, get_non_number_replicas): def test_load_replica_non_number(self, get_non_number_replicas):
""" """
target: test load collection with non-number replicas target: test load collection with non-number replicas

View File

@ -276,7 +276,7 @@ class TestInsertParams(TestcaseBase):
nb = 10 nb = 10
df = cf.gen_default_dataframe_data(nb) df = cf.gen_default_dataframe_data(nb)
new_float_value = pd.Series(data=[float(i) for i in range(nb)], dtype="float64") new_float_value = pd.Series(data=[float(i) for i in range(nb)], dtype="float64")
df.iloc[:, 1] = new_float_value df[df.columns[1]] = new_float_value
error = {ct.err_code: 1, ct.err_msg: 'The data fields number is not match with schema.'} error = {ct.err_code: 1, ct.err_msg: 'The data fields number is not match with schema.'}
collection_w.insert(data=df, check_task=CheckTasks.err_res, check_items=error) collection_w.insert(data=df, check_task=CheckTasks.err_res, check_items=error)
@ -1137,7 +1137,7 @@ class TestInsertString(TestcaseBase):
nb = 10 nb = 10
df = cf.gen_default_dataframe_data(nb) df = cf.gen_default_dataframe_data(nb)
new_float_value = pd.Series(data=[float(i) for i in range(nb)], dtype="float64") new_float_value = pd.Series(data=[float(i) for i in range(nb)], dtype="float64")
df.iloc[:, 2] = new_float_value df[df.columns[2]] = new_float_value
error = {ct.err_code: 1, ct.err_msg: "The data type of field varchar doesn't match, expected: VARCHAR, got DOUBLE"} error = {ct.err_code: 1, ct.err_msg: "The data type of field varchar doesn't match, expected: VARCHAR, got DOUBLE"}
collection_w.insert(data=df, check_task=CheckTasks.err_res, check_items=error) collection_w.insert(data=df, check_task=CheckTasks.err_res, check_items=error)

View File

@ -316,6 +316,7 @@ class TestPartitionParams(TestcaseBase):
yield request.param yield request.param
@pytest.mark.tags(CaseLabel.L2) @pytest.mark.tags(CaseLabel.L2)
@pytest.mark.xfail("issue #21618")
def test_load_partition_replica_non_number(self, get_non_number_replicas): def test_load_partition_replica_non_number(self, get_non_number_replicas):
""" """
target: test load partition with non-number replicas target: test load partition with non-number replicas