mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-16 23:17:42 +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:
parent
a3eff87e80
commit
2affa1fe26
@ -6,6 +6,7 @@
|
|||||||
package virtcontainers
|
package virtcontainers
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"net"
|
"net"
|
||||||
@ -245,7 +246,9 @@ func TestHyperSetProxy(t *testing.T) {
|
|||||||
|
|
||||||
h := &hyper{}
|
h := &hyper{}
|
||||||
p := &ccProxy{}
|
p := &ccProxy{}
|
||||||
s := &Sandbox{storage: &filesystem{}}
|
s := &Sandbox{
|
||||||
|
storage: &filesystem{ctx: context.Background()},
|
||||||
|
}
|
||||||
|
|
||||||
err := h.setProxy(s, p, 0, "")
|
err := h.setProxy(s, p, 0, "")
|
||||||
assert.Error(err)
|
assert.Error(err)
|
||||||
|
Loading…
Reference in New Issue
Block a user