Skip to content

Commit

Permalink
integration/docker: fix docker integration tests to support golang 1.13
Browse files Browse the repository at this point in the history
Call to `tests.KataInit` in `TestMain` to support golang 1.13.

Depends-on: github.com/kata-containers/runtime#2536

Signed-off-by: Julio Montes <[email protected]>
  • Loading branch information
Julio Montes committed Mar 19, 2020
1 parent 63c0809 commit 518d0db
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions integration/docker/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (
"strings"
"testing"

"github.com/kata-containers/tests"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
)
Expand Down Expand Up @@ -67,3 +68,8 @@ func TestIntegration(t *testing.T) {
RegisterFailHandler(Fail)
RunSpecs(t, "Integration Suite")
}

func TestMain(m *testing.M) {
tests.KataInit()
m.Run()
}

0 comments on commit 518d0db

Please sign in to comment.