@@ -38,7 +38,6 @@ import (
38
38
"github.com/stretchr/testify/require"
39
39
40
40
models "github.com/firecracker-microvm/firecracker-go-sdk/client/models"
41
- "github.com/firecracker-microvm/firecracker-go-sdk/client/operations"
42
41
ops "github.com/firecracker-microvm/firecracker-go-sdk/client/operations"
43
42
"github.com/firecracker-microvm/firecracker-go-sdk/fctesting"
44
43
)
@@ -720,7 +719,7 @@ func testAttachVsock(ctx context.Context, t *testing.T, m *Machine) {
720
719
}
721
720
err := m .addVsock (ctx , dev )
722
721
if err != nil {
723
- if badRequest , ok := err .(* operations .PutGuestVsockBadRequest ); ok &&
722
+ if badRequest , ok := err .(* ops .PutGuestVsockBadRequest ); ok &&
724
723
strings .HasPrefix (badRequest .Payload .FaultMessage , "Invalid request method and/or path" ) {
725
724
t .Errorf (`attaching vsock failed: %s
726
725
Does your Firecracker binary have vsock support?
@@ -735,7 +734,7 @@ Build one with vsock support by running `+"`cargo build --release --features vso
735
734
func testStartInstance (ctx context.Context , t * testing.T , m * Machine ) {
736
735
err := m .startInstance (ctx )
737
736
if err != nil {
738
- if syncErr , ok := err .(* operations .CreateSyncActionDefault ); ok &&
737
+ if syncErr , ok := err .(* ops .CreateSyncActionDefault ); ok &&
739
738
strings .HasPrefix (syncErr .Payload .FaultMessage , "Cannot create vsock device" ) {
740
739
t .Errorf (`startInstance: %s
741
740
Do you have permission to interact with /dev/vhost-vsock?
0 commit comments