From 6a6b55a0de0cea16c450305000a8e6dfce90ac55 Mon Sep 17 00:00:00 2001 From: kevindiu Date: Wed, 19 Jul 2023 03:07:32 +0000 Subject: [PATCH] fix deepsource Signed-off-by: kevindiu --- internal/db/storage/blob/s3/reader/option_test.go | 2 +- internal/test/data/request/insert_test.go | 2 ++ internal/test/data/request/object_test.go | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/internal/db/storage/blob/s3/reader/option_test.go b/internal/db/storage/blob/s3/reader/option_test.go index d4ec985b59..d46f0cd4c6 100644 --- a/internal/db/storage/blob/s3/reader/option_test.go +++ b/internal/db/storage/blob/s3/reader/option_test.go @@ -435,7 +435,7 @@ func TestWithBackoffOpts(t *testing.T) { } }(), func() test { - defaultOptions := []backoff.Option{} + var defaultOptions []backoff.Option opts := []backoff.Option{ backoff.WithRetryCount(1), } diff --git a/internal/test/data/request/insert_test.go b/internal/test/data/request/insert_test.go index 93e8b8409e..5c6f2eab68 100644 --- a/internal/test/data/request/insert_test.go +++ b/internal/test/data/request/insert_test.go @@ -31,6 +31,7 @@ var defaultMultiInsertReqComparators = []comparator.Option{ } func TestGenMultiInsertReq(t *testing.T) { + t.Parallel() type args struct { t ObjectType dist vector.Distribution @@ -243,6 +244,7 @@ func TestGenMultiInsertReq(t *testing.T) { } func TestGenSameVecMultiInsertReq(t *testing.T) { + t.Parallel() type args struct { num int vec []float32 diff --git a/internal/test/data/request/object_test.go b/internal/test/data/request/object_test.go index 7f9684e9e7..5754bd6fce 100644 --- a/internal/test/data/request/object_test.go +++ b/internal/test/data/request/object_test.go @@ -29,6 +29,7 @@ var defaultObjectLocationComparators = []comparator.Option{ } func TestGenObjectLocations(t *testing.T) { + t.Parallel() type args struct { num int name string @@ -151,6 +152,7 @@ func TestGenObjectLocations(t *testing.T) { } func TestGenObjectStreamLocation(t *testing.T) { + t.Parallel() type args struct { num int name string