Merged in feature/import (pull request #157)
Feature/import * importstart * pp * tests * importtests * 100GB * lint * passtests * utc * awsprofile * doublequotes * host
This commit is contained in:
@@ -5,9 +5,7 @@ import (
|
||||
"testing"
|
||||
|
||||
queryapi "queryorchestration/api/queryAPI"
|
||||
"queryorchestration/internal/client"
|
||||
"queryorchestration/internal/database/repository"
|
||||
"queryorchestration/internal/export"
|
||||
"queryorchestration/internal/test"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
@@ -16,13 +14,11 @@ import (
|
||||
|
||||
func TestGetClientStatus(t *testing.T) {
|
||||
t.Parallel()
|
||||
cfg := &ClientConfig{}
|
||||
cfg := &ControllerConfig{}
|
||||
test.CreateDB(t, cfg)
|
||||
|
||||
cons := queryapi.NewControllers(&queryapi.Services{
|
||||
Client: client.New(cfg),
|
||||
Export: export.New(),
|
||||
})
|
||||
svc := createControllerServices(cfg)
|
||||
cons := queryapi.NewControllers(svc)
|
||||
|
||||
ctx, rec := createContext(t)
|
||||
|
||||
@@ -48,13 +44,11 @@ func TestGetClientStatus(t *testing.T) {
|
||||
}
|
||||
|
||||
func BenchmarkGetClientStatus(b *testing.B) {
|
||||
cfg := &ClientConfig{}
|
||||
cfg := &ControllerConfig{}
|
||||
test.CreateDB(b, cfg)
|
||||
|
||||
cons := queryapi.NewControllers(&queryapi.Services{
|
||||
Client: client.New(cfg),
|
||||
Export: export.New(),
|
||||
})
|
||||
svc := createControllerServices(cfg)
|
||||
cons := queryapi.NewControllers(svc)
|
||||
|
||||
ctx, _ := createContext(b)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user