From 6894f3e05d7c85909f382f062f958b83146189c0 Mon Sep 17 00:00:00 2001 From: Ivan Milchev Date: Tue, 23 Jan 2024 17:00:23 +0200 Subject: [PATCH] fix tests Signed-off-by: Ivan Milchev --- examples/lint_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/lint_test.go b/examples/lint_test.go index eb2318e3dc..70295308a7 100644 --- a/examples/lint_test.go +++ b/examples/lint_test.go @@ -4,13 +4,14 @@ package examples import ( + "os" + "testing" + "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "go.mondoo.com/cnquery/v10/explorer" "go.mondoo.com/cnquery/v10/internal/bundle" "go.mondoo.com/cnquery/v10/providers" - "os" - "testing" ) func ensureProviders(ids []string) error { @@ -29,8 +30,8 @@ func TestMain(m *testing.M) { providers.DefaultPath = dir err := ensureProviders([]string{ - "go.mondoo.com/cnquery/providers/os", - "go.mondoo.com/cnquery/providers/k8s", + "go.mondoo.com/cnquery/v9/providers/os", + "go.mondoo.com/cnquery/v9/providers/k8s", }) if err != nil { panic(err) @@ -48,7 +49,6 @@ func TestMain(m *testing.M) { } func TestExampleLint(t *testing.T) { - queryPackBundle, err := explorer.BundleFromPaths(".") require.NoError(t, err)