Skip to content

Commit

Permalink
fix: Fix Azure test
Browse files Browse the repository at this point in the history
Signed-off-by: Yuan Tang <terrytangyuan@gmail.com>
  • Loading branch information
terrytangyuan committed Jul 20, 2023
1 parent 3cb56bd commit b76329f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions workflow/artifacts/azure/azure_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import (
"testing"

"github.com/Azure/azure-sdk-for-go/sdk/azcore"
"github.com/Azure/azure-sdk-for-go/sdk/storage/azblob"
"github.com/stretchr/testify/assert"

wfv1 "github.com/argoproj/argo-workflows/v3/pkg/apis/workflow/v1alpha1"

"github.com/stretchr/testify/assert"
)

func TestDetermineAccountName(t *testing.T) {
Expand Down Expand Up @@ -64,8 +64,9 @@ func TestArtifactDriver_DownloadDirectory_Subdir(t *testing.T) {
}

// put a file in a subdir on the azurite blob storage
blobClient := containerClient.NewBlockBlobClient("dir/subdir/file-in-subdir.txt")
_, err = blobClient.UploadBuffer(context.Background(), []byte("foo"), nil)
blobClient, err := containerClient.NewBlockBlobClient("dir/subdir/file-in-subdir.txt")
assert.NoError(t, err)
_, err = blobClient.UploadBuffer(context.Background(), []byte("foo"), azblob.UploadOption{})
assert.NoError(t, err)

// download the dir, containing a subdir
Expand Down

0 comments on commit b76329f

Please sign in to comment.