mirror of
https://github.com/aljazceru/kata-containers.git
synced 2026-01-02 22:14:27 +01: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
|
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)
|
||||||
|
|||||||
Reference in New Issue
Block a user