Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
virtcontainers: Reduce hyperstart agent test noise
Browse files Browse the repository at this point in the history
We need to pass a context to the filesystem handle.

Fixes: #1211

Signed-off-by: Samuel Ortiz <[email protected]>
  • Loading branch information
Samuel Ortiz committed Feb 5, 2019
1 parent a3eff87 commit 2affa1f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion virtcontainers/hyperstart_agent_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
package virtcontainers

import (
"context"
"fmt"
"io/ioutil"
"net"
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 2affa1f

Please sign in to comment.