Skip to content

Commit 32d39fa

Browse files
authored
Merge pull request #384 from alrs/multiple-test-imports
fix duplicate test imports
2 parents ff9882a + 8d2a895 commit 32d39fa

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

machine_test.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ import (
3838
"github.com/stretchr/testify/require"
3939

4040
models "github.com/firecracker-microvm/firecracker-go-sdk/client/models"
41-
"github.com/firecracker-microvm/firecracker-go-sdk/client/operations"
4241
ops "github.com/firecracker-microvm/firecracker-go-sdk/client/operations"
4342
"github.com/firecracker-microvm/firecracker-go-sdk/fctesting"
4443
)
@@ -720,7 +719,7 @@ func testAttachVsock(ctx context.Context, t *testing.T, m *Machine) {
720719
}
721720
err := m.addVsock(ctx, dev)
722721
if err != nil {
723-
if badRequest, ok := err.(*operations.PutGuestVsockBadRequest); ok &&
722+
if badRequest, ok := err.(*ops.PutGuestVsockBadRequest); ok &&
724723
strings.HasPrefix(badRequest.Payload.FaultMessage, "Invalid request method and/or path") {
725724
t.Errorf(`attaching vsock failed: %s
726725
Does your Firecracker binary have vsock support?
@@ -735,7 +734,7 @@ Build one with vsock support by running `+"`cargo build --release --features vso
735734
func testStartInstance(ctx context.Context, t *testing.T, m *Machine) {
736735
err := m.startInstance(ctx)
737736
if err != nil {
738-
if syncErr, ok := err.(*operations.CreateSyncActionDefault); ok &&
737+
if syncErr, ok := err.(*ops.CreateSyncActionDefault); ok &&
739738
strings.HasPrefix(syncErr.Payload.FaultMessage, "Cannot create vsock device") {
740739
t.Errorf(`startInstance: %s
741740
Do you have permission to interact with /dev/vhost-vsock?

0 commit comments

Comments
 (0)