mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-15 22:53:43 +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
|
||||
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user