mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-09-17 14:58:16 +00:00
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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user