mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-14 10:53:34 +00:00
cleanup: addresses paralleltest linter
The Go linter paralleltest checks that the t.Parallel gets called for the test method and for the range of test cases within the test. Updates: #2025 Signed-off-by: Yati Padia <ypadia@redhat.com>
This commit is contained in:
@ -32,6 +32,7 @@ func wrapError(e error) error {
|
||||
}
|
||||
|
||||
func TestJoinErrors(t *testing.T) {
|
||||
t.Parallel()
|
||||
assertErrorIs := func(e1, e2 error, ok bool) {
|
||||
if errors.Is(e1, e2) != ok {
|
||||
t.Errorf("errors.Is(e1, e2) != %v - e1: %#v - e2: %#v", ok, e1, e2)
|
||||
|
Reference in New Issue
Block a user