Skip to content

Commit

Permalink
add dummy context
Browse files Browse the repository at this point in the history
  • Loading branch information
idroz committed Jun 20, 2022
1 parent a201aab commit 7ccbe6a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion platform/host_api_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package platform

import (
"context"
"testing"

"github.com/bravetools/bravetools/shared"
Expand Down Expand Up @@ -70,6 +71,8 @@ func Test_InitUnit(t *testing.T) {
host := *NewBraveHost()
backend := NewLxd(host.Settings)

ctx := context.Background()

bravefile := *shared.NewBravefile()
bravefile.Base.Image = "alpine/edge/amd64"
bravefile.Base.Location = "public"
Expand Down Expand Up @@ -107,7 +110,7 @@ func Test_InitUnit(t *testing.T) {
t.Error("host.InitUnit: ", err)
}

err = host.Postdeploy(&bravefile)
err = host.Postdeploy(ctx, &bravefile)
if err != nil {
t.Error("host.Postdeploy: ", err)
}
Expand Down

0 comments on commit 7ccbe6a

Please sign in to comment.