From ef88c4877413b9b60c5337cf6ccf0edd8118e703 Mon Sep 17 00:00:00 2001 From: alice-px Date: Thu, 18 Jan 2024 10:47:31 -0800 Subject: [PATCH] fix --- api/client/volume/client_volume_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/client/volume/client_volume_test.go b/api/client/volume/client_volume_test.go index a2c16456d..96ceea212 100644 --- a/api/client/volume/client_volume_test.go +++ b/api/client/volume/client_volume_test.go @@ -1,6 +1,7 @@ package volume import ( + "context" "crypto/tls" "encoding/json" "net/http" @@ -25,7 +26,7 @@ func TestClientTLS(t *testing.T) { clnt.SetTLS(&tls.Config{InsecureSkipVerify: true}) - _, err = VolumeDriver(clnt).Inspect([]string{"12345"}) + _, err = VolumeDriver(clnt).Inspect(context.TODO(), []string{"12345"}) require.NoError(t, err) }