From 7d36b7d654db4f5130cb45aefcc4b80a24913d3f Mon Sep 17 00:00:00 2001 From: del-zhenwu <56623710+del-zhenwu@users.noreply.github.com> Date: Mon, 15 Jun 2020 17:59:14 +0800 Subject: [PATCH] [skip ci] remove timeout in partition-test case (#2563) * [skip ci] remove timeout in partition-test case Signed-off-by: zw * Update server_versiong Signed-off-by: zw * fix client_test.go Signed-off-by: zw Co-authored-by: zw --- tests/milvus_go_test/client_test.go | 2 +- tests/milvus_python_test/entity/test_get_entity_by_id.py | 5 ++++- tests/milvus_python_test/entity/test_insert.py | 1 - tests/milvus_python_test/test_compact.py | 1 - tests/milvus_python_test/test_partition.py | 6 ++++-- tests/milvus_python_test/test_ping.py | 2 +- 6 files changed, 10 insertions(+), 7 deletions(-) diff --git a/tests/milvus_go_test/client_test.go b/tests/milvus_go_test/client_test.go index 9b57ff82..83d24aad 100644 --- a/tests/milvus_go_test/client_test.go +++ b/tests/milvus_go_test/client_test.go @@ -357,7 +357,7 @@ func TestCmd(t *testing.T) { } // test SetConfig and GetConfig - nodeName := "cache_config.cpu_cache_capacity" + nodeName := "cache.cache_size" nodeValue := "2" status, err = client.SetConfig(nodeName, nodeValue) if err != nil { diff --git a/tests/milvus_python_test/entity/test_get_entity_by_id.py b/tests/milvus_python_test/entity/test_get_entity_by_id.py index ae0e67a8..16b6f15a 100644 --- a/tests/milvus_python_test/entity/test_get_entity_by_id.py +++ b/tests/milvus_python_test/entity/test_get_entity_by_id.py @@ -58,12 +58,15 @@ class TestGetBase: for i in range(length): assert_equal_vector(res[i], vectors[i]) - def test_get_vector_C_limit(self, connect, collection): + def test_get_vector_C_limit(self, connect, collection, args): ''' target: test.get_entity_by_id method: add vector, and get, limit > 1000 expected: status ok, vector returned ''' + if args["handler"] == "HTTP": + pytest.skip("skip in http mode") + vectors = gen_vectors(nb, dim) status, ids = connect.insert(collection, vectors) assert status.OK() diff --git a/tests/milvus_python_test/entity/test_insert.py b/tests/milvus_python_test/entity/test_insert.py index 3bfff249..f8604500 100644 --- a/tests/milvus_python_test/entity/test_insert.py +++ b/tests/milvus_python_test/entity/test_insert.py @@ -582,7 +582,6 @@ class TestAddBase: @pytest.mark.level(2) @pytest.mark.timeout(30) - @pytest.mark.repeat(2) def test_collection_add_rows_count_multi_threading(self, args, collection): ''' target: test collection rows_count is correct or not with multi threading diff --git a/tests/milvus_python_test/test_compact.py b/tests/milvus_python_test/test_compact.py index 9b54f642..ffdd6554 100644 --- a/tests/milvus_python_test/test_compact.py +++ b/tests/milvus_python_test/test_compact.py @@ -378,7 +378,6 @@ class TestCompactBase: assert status.OK() @pytest.mark.timeout(COMPACT_TIMEOUT) - @pytest.mark.repeat(10) def test_index_creation_after_compact(self, connect, collection, get_simple_index): ''' target: test index creation after compact diff --git a/tests/milvus_python_test/test_partition.py b/tests/milvus_python_test/test_partition.py index b9ba5ac0..4e1e7a29 100644 --- a/tests/milvus_python_test/test_partition.py +++ b/tests/milvus_python_test/test_partition.py @@ -34,13 +34,15 @@ class TestCreateBase: assert status.OK() @pytest.mark.level(3) - @pytest.mark.timeout(TIMEOUT) - def test_create_partition_limit(self, connect, collection): + def test_create_partition_limit(self, connect, collection, args): ''' target: test create partitions, check status returned method: call function: create_partition for 4097 times expected: status not ok ''' + if args["handler"] == "HTTP": + pytest.skip("skip in http mode") + for i in range(4096): tag_tmp = gen_unique_str() status = connect.create_partition(collection, tag_tmp) diff --git a/tests/milvus_python_test/test_ping.py b/tests/milvus_python_test/test_ping.py index 8a20af1a..c3d382ef 100644 --- a/tests/milvus_python_test/test_ping.py +++ b/tests/milvus_python_test/test_ping.py @@ -1,7 +1,7 @@ import logging import pytest -__version__ = '0.9.0' +__version__ = '0.10.0' class TestPing: -- GitLab