Skip to content

Commit

Permalink
Fix integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
dehaansa committed Nov 21, 2024
1 parent 498d007 commit 1bc7f34
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions receiver/vcenterreceiver/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import (
"time"

"github.com/stretchr/testify/require"
"github.com/vmware/govmomi"
"github.com/vmware/govmomi/find"
"github.com/vmware/govmomi/session"
"github.com/vmware/govmomi/simulator"
Expand Down Expand Up @@ -80,12 +79,10 @@ func TestIntegration(t *testing.T) {
s := session.NewManager(c)
newVcenterClient = func(l *zap.Logger, cfg *Config) *vcenterClient {
client := &vcenterClient{
logger: l,
cfg: cfg,
moClient: &govmomi.Client{
Client: c,
SessionManager: s,
},
logger: l,
cfg: cfg,
sessionManager: s,
vimDriver: c,
}
require.NoError(t, client.EnsureConnection(context.Background()))
client.vimDriver = c
Expand Down

0 comments on commit 1bc7f34

Please sign in to comment.