From f1fd6b85c764d0aebc87ef5a9ea48aeb2348cac9 Mon Sep 17 00:00:00 2001 From: Hans Rakers Date: Thu, 27 Jun 2024 21:48:17 +0200 Subject: [PATCH] test: Fix sanity test --- test/sanity/sanity_test.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/sanity/sanity_test.go b/test/sanity/sanity_test.go index 27eede4..ee1f4b8 100644 --- a/test/sanity/sanity_test.go +++ b/test/sanity/sanity_test.go @@ -39,7 +39,12 @@ func TestSanity(t *testing.T) { logger := klog.Background() ctx := klog.NewContext(context.Background(), logger) - csiDriver, err := driver.New(endpoint, fake.New(), mount.NewFake(), "node", "v0") + options := driver.Options{ + Mode: driver.AllMode, + Endpoint: endpoint, + NodeName: "node", + } + csiDriver, err := driver.New(ctx, fake.New(), &options, mount.NewFake()) if err != nil { t.Fatalf("error creating driver: %v", err) }