From 2affa1fe26da550a61af9f8331f3c354c4dadc64 Mon Sep 17 00:00:00 2001 From: Samuel Ortiz Date: Tue, 5 Feb 2019 14:11:53 +0100 Subject: [PATCH] virtcontainers: Reduce hyperstart agent test noise We need to pass a context to the filesystem handle. Fixes: #1211 Signed-off-by: Samuel Ortiz --- virtcontainers/hyperstart_agent_test.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/virtcontainers/hyperstart_agent_test.go b/virtcontainers/hyperstart_agent_test.go index 6821601be..06c7a782f 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)