diff --git a/virtcontainers/hyperstart_agent_test.go b/virtcontainers/hyperstart_agent_test.go index 6821601bed..06c7a782f9 100644 --- a/virtcontainers/hyperstart_agent_test.go +++ b/virtcontainers/hyperstart_agent_test.go @@ -6,6 +6,7 @@ package virtcontainers import ( + "context" "fmt" "io/ioutil" "net" @@ -245,7 +246,9 @@ func TestHyperSetProxy(t *testing.T) { h := &hyper{} p := &ccProxy{} - s := &Sandbox{storage: &filesystem{}} + s := &Sandbox{ + storage: &filesystem{ctx: context.Background()}, + } err := h.setProxy(s, p, 0, "") assert.Error(err)