Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
kmrmt committed Aug 19, 2020
1 parent eafcc0e commit b0e3b14
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 12 deletions.
8 changes: 3 additions & 5 deletions pkg/tools/cli/loadtest/service/insert_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,10 @@ import (

"github.com/vdaas/vald/internal/errgroup"
"github.com/vdaas/vald/internal/errors"
igrpc "github.com/vdaas/vald/internal/net/grpc"
"github.com/vdaas/vald/internal/net/grpc"
"github.com/vdaas/vald/pkg/tools/cli/loadtest/assets"
"github.com/vdaas/vald/pkg/tools/cli/loadtest/config"
"go.uber.org/goleak"

"google.golang.org/grpc" // TODO: related to #557
)

func Test_insertRequestProvider(t *testing.T) {
Expand Down Expand Up @@ -552,7 +550,7 @@ func Test_bulkInsert(t *testing.T) {
func Test_loader_newInsert(t *testing.T) {
type fields struct {
eg errgroup.Group
client igrpc.Client
client grpc.Client
addr string
concurrency int
batchSize int
Expand Down Expand Up @@ -674,7 +672,7 @@ func Test_loader_newInsert(t *testing.T) {
func Test_loader_newStreamInsert(t *testing.T) {
type fields struct {
eg errgroup.Group
client igrpc.Client
client grpc.Client
addr string
concurrency int
batchSize int
Expand Down
8 changes: 4 additions & 4 deletions pkg/tools/cli/loadtest/service/loader_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (

"github.com/vdaas/vald/internal/errgroup"
"github.com/vdaas/vald/internal/errors"
igrpc "github.com/vdaas/vald/internal/net/grpc"
"github.com/vdaas/vald/internal/net/grpc"
"github.com/vdaas/vald/pkg/tools/cli/loadtest/config"
"go.uber.org/goleak"
)
Expand Down Expand Up @@ -109,7 +109,7 @@ func Test_loader_Prepare(t *testing.T) {
}
type fields struct {
eg errgroup.Group
client igrpc.Client
client grpc.Client
addr string
concurrency int
batchSize int
Expand Down Expand Up @@ -237,7 +237,7 @@ func Test_loader_Do(t *testing.T) {
}
type fields struct {
eg errgroup.Group
client igrpc.Client
client grpc.Client
addr string
concurrency int
batchSize int
Expand Down Expand Up @@ -367,7 +367,7 @@ func Test_loader_do(t *testing.T) {
}
type fields struct {
eg errgroup.Group
client igrpc.Client
client grpc.Client
addr string
concurrency int
batchSize int
Expand Down
6 changes: 3 additions & 3 deletions pkg/tools/cli/loadtest/service/search_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (

"github.com/vdaas/vald/internal/errgroup"
"github.com/vdaas/vald/internal/errors"
igrpc "github.com/vdaas/vald/internal/net/grpc"
"github.com/vdaas/vald/internal/net/grpc"
"github.com/vdaas/vald/pkg/tools/cli/loadtest/assets"
"github.com/vdaas/vald/pkg/tools/cli/loadtest/config"
"go.uber.org/goleak"
Expand Down Expand Up @@ -110,7 +110,7 @@ func Test_searchRequestProvider(t *testing.T) {
func Test_loader_newSearch(t *testing.T) {
type fields struct {
eg errgroup.Group
client igrpc.Client
client grpc.Client
addr string
concurrency int
batchSize int
Expand Down Expand Up @@ -232,7 +232,7 @@ func Test_loader_newSearch(t *testing.T) {
func Test_loader_newStreamSearch(t *testing.T) {
type fields struct {
eg errgroup.Group
client igrpc.Client
client grpc.Client
addr string
concurrency int
batchSize int
Expand Down

0 comments on commit b0e3b14

Please sign in to comment.