mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-03 04:19:18 +08:00
Handle util funcutil returned error (#9170)
Signed-off-by: godchen <qingxiang.chen@zilliz.com>
This commit is contained in:
parent
45d6b8dcd0
commit
3c98adfe41
@ -104,9 +104,12 @@ func Test_ProcessFuncParallel(t *testing.T) {
|
||||
return nil
|
||||
}
|
||||
|
||||
ProcessFuncParallel(total, 1, randomErrorF, "randomErrorF") // serial
|
||||
err = ProcessFuncParallel(total, 1, randomErrorF, "randomErrorF") // serial
|
||||
assert.NotNil(t, err)
|
||||
|
||||
ProcessFuncParallel(total, total, randomErrorF, "randomErrorF") // Totally Parallel
|
||||
err = ProcessFuncParallel(total, total, randomErrorF, "randomErrorF") // Totally Parallel
|
||||
assert.NotNil(t, err)
|
||||
|
||||
ProcessFuncParallel(total, runtime.NumCPU(), randomErrorF, "randomErrorF") // Parallel by CPU
|
||||
err = ProcessFuncParallel(total, runtime.NumCPU(), randomErrorF, "randomErrorF") // Parallel by CPU
|
||||
assert.NotNil(t, err)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user