azure-blob: Fix VisitObjects() in integration test

Signed-off-by: Sunny <github@darkowlzz.space>
This commit is contained in:
Sunny 2024-08-09 18:58:17 +00:00
parent 67f6cba19d
commit 0618f54717
No known key found for this signature in database
GPG Key ID: C58440AB02208FDD
1 changed files with 2 additions and 2 deletions

View File

@ -361,7 +361,7 @@ func TestBlobClient_VisitObjects(t *testing.T) {
// Visit objects.
ctx, timeout = context.WithTimeout(context.Background(), testTimeout)
defer timeout()
got := client.VisitObjects(ctx, testContainer, func(path, etag string) error {
got := client.VisitObjects(ctx, testContainer, "", func(path, etag string) error {
visits[path] = etag
return nil
})
@ -399,7 +399,7 @@ func TestBlobClient_VisitObjects_CallbackErr(t *testing.T) {
ctx, timeout = context.WithTimeout(context.Background(), testTimeout)
defer timeout()
mockErr := fmt.Errorf("mock")
err = client.VisitObjects(ctx, testContainer, func(path, etag string) error {
err = client.VisitObjects(ctx, testContainer, "", func(path, etag string) error {
return mockErr
})
g.Expect(err).To(HaveOccurred())