@@ -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
726725Does your Firecracker binary have vsock support?
@@ -735,7 +734,7 @@ Build one with vsock support by running `+"`cargo build --release --features vso
735734func 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
741740Do you have permission to interact with /dev/vhost-vsock?
0 commit comments