diff --git a/internal/daemon/daemon.go b/internal/daemon/daemon.go index ed9f715..68eb77c 100644 --- a/internal/daemon/daemon.go +++ b/internal/daemon/daemon.go @@ -653,8 +653,6 @@ func wireServices(d *Daemon) { net: d.net, img: d.img, ws: d.ws, - guestWaitForSSH: d.guestWaitForSSH, - guestDial: d.guestDial, capHooks: d.buildCapabilityHooks(), beginOperation: d.beginOperation, vsockHostDevice: defaultVsockHostDevice, diff --git a/internal/daemon/vm_service.go b/internal/daemon/vm_service.go index 30d9d09..fdd7d95 100644 --- a/internal/daemon/vm_service.go +++ b/internal/daemon/vm_service.go @@ -8,7 +8,6 @@ import ( "log/slog" "strings" "sync" - "time" "banger/internal/daemon/opstate" "banger/internal/firecracker" @@ -63,9 +62,6 @@ type VMService struct { img *ImageService ws *WorkspaceService - // Test seams. - guestWaitForSSH func(context.Context, string, string, time.Duration) error - guestDial func(context.Context, string, string) (guestSSHClient, error) // vsockHostDevice is the path preflight + doctor expect to find for // the vhost-vsock device. Defaults to defaultVsockHostDevice; tests // point at a tempfile so RequireFile passes without needing the @@ -105,8 +101,6 @@ type vmServiceDeps struct { net *HostNetwork img *ImageService ws *WorkspaceService - guestWaitForSSH func(context.Context, string, string, time.Duration) error - guestDial func(context.Context, string, string) (guestSSHClient, error) capHooks capabilityHooks beginOperation func(name string, attrs ...any) *operationLog vsockHostDevice string @@ -126,8 +120,6 @@ func newVMService(deps vmServiceDeps) *VMService { net: deps.net, img: deps.img, ws: deps.ws, - guestWaitForSSH: deps.guestWaitForSSH, - guestDial: deps.guestDial, capHooks: deps.capHooks, beginOperation: deps.beginOperation, vsockHostDevice: vsockPath,