mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-04 21:09:06 +08:00
[skip e2e] Improve annotation (#14388)
Signed-off-by: Xieql <qianglong.xie@zilliz.com>
This commit is contained in:
parent
5fdd10e555
commit
9e07a0d04d
@ -96,7 +96,7 @@ func Test_ProcessFuncParallel(t *testing.T) {
|
|||||||
err = ProcessFuncParallel(total, runtime.NumCPU(), evenErrorF, "evenErrorF") // Parallel by CPU
|
err = ProcessFuncParallel(total, runtime.NumCPU(), evenErrorF, "evenErrorF") // Parallel by CPU
|
||||||
assert.NotEqual(t, err, nil, "process function parallel must be right")
|
assert.NotEqual(t, err, nil, "process function parallel must be right")
|
||||||
|
|
||||||
// rand.Int() may be always a even number
|
// rand.Int() may be always an even number
|
||||||
randomErrorF := func(idx int) error {
|
randomErrorF := func(idx int) error {
|
||||||
if rand.Int()%2 == 0 {
|
if rand.Int()%2 == 0 {
|
||||||
return errors.New("random location: " + strconv.Itoa(idx))
|
return errors.New("random location: " + strconv.Itoa(idx))
|
||||||
|
Loading…
Reference in New Issue
Block a user