Fix test insert case

Signed-off-by: BossZou <yinghao.zou@zilliz.com>
This commit is contained in:
BossZou 2021-02-26 17:59:13 +08:00 committed by yefu.chen
parent 7b9fdd7f29
commit 7893ebdb40
3 changed files with 2 additions and 10 deletions

View File

@ -78,13 +78,6 @@ type RocksMQ struct {
channelMu map[string]*sync.Mutex
notify map[string][]*Consumer
//ctx context.Context
//serverLoopWg sync.WaitGroup
//serverLoopCtx context.Context
//serverLoopCancel func()
//// tso ticker
//tsoTicker *time.Ticker
}
func NewRocksMQ(name string, idAllocator allocator.GIDAllocator) (*RocksMQ, error) {
@ -210,7 +203,6 @@ func (rmq *RocksMQ) Produce(channelName string, messages []ProducerMessage) erro
return err
}
// TODO(yhz): Here assume allocated id size is equal to message size
if UniqueID(msgLen) != idEnd-idStart {
return errors.New("Obtained id length is not equal that of message")
}

View File

@ -1,3 +1,4 @@
import copy
from .utils import *
from .constants import *
@ -17,7 +18,7 @@ class TestDescribeCollection:
expected: returned value is the same
'''
collection_name = gen_unique_str(uid)
df = default_fields
df = copy.deepcopy(default_fields)
df["fields"].append({"name": "int32", "type": DataType.INT32})
connect.create_collection(collection_name, df)

View File

@ -831,7 +831,6 @@ class TestInsertMultiCollections:
count = connect.count_entities(collection_name)
assert count == default_nb
@pytest.mark.skip("r0.3-test")
@pytest.mark.timeout(ADD_TIMEOUT)
def test_drop_collection_insert_vector_another(self, connect, collection):
'''