未验证 提交 7d36b7d6 编写于 作者: D del-zhenwu 提交者: GitHub

[skip ci] remove timeout in partition-test case (#2563)

* [skip ci] remove timeout in partition-test case
Signed-off-by: Nzw <zw@milvus.io>

* Update server_versiong
Signed-off-by: Nzw <zw@milvus.io>

* fix client_test.go
Signed-off-by: Nzw <zw@milvus.io>
Co-authored-by: Nzw <zw@milvus.io>
上级 95d970cf
......@@ -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 {
......
......@@ -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()
......
......@@ -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
......
......@@ -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
......
......@@ -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)
......
import logging
import pytest
__version__ = '0.9.0'
__version__ = '0.10.0'
class TestPing:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册