virtcontainers: Reduce hyperstart agent test noise

We need to pass a context to the filesystem handle.

Fixes: #1211

Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
This commit is contained in:
Samuel Ortiz 2019-02-05 14:11:53 +01:00
parent a3eff87e80
commit 2affa1fe26

View File

@ -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)