This commit is contained in:
Denis Bilenko 2024-12-09 12:54:53 +01:00
parent d0af547fa5
commit d075b6c22e
1 changed files with 6 additions and 6 deletions

View File

@ -23,7 +23,7 @@ func TestArtifactUploadForWorkspace(t *testing.T) {
tmpDir := t.TempDir() tmpDir := t.TempDir()
whlFolder := filepath.Join(tmpDir, "whl") whlFolder := filepath.Join(tmpDir, "whl")
testutil.Touch(t, whlFolder, "source.whl") testutil.Touch(t, whlFolder, "source.whl")
_ = filepath.Join(whlFolder, "source.whl") whlLocalPath := filepath.Join(whlFolder, "source.whl")
b := &bundle.Bundle{ b := &bundle.Bundle{
SyncRootPath: tmpDir, SyncRootPath: tmpDir,
@ -32,10 +32,10 @@ func TestArtifactUploadForWorkspace(t *testing.T) {
ArtifactPath: "/foo/bar/artifacts", ArtifactPath: "/foo/bar/artifacts",
}, },
Artifacts: config.Artifacts{ Artifacts: config.Artifacts{
"whl": &config.Artifact{ "whl": {
Type: config.ArtifactPythonWheel, Type: config.ArtifactPythonWheel,
Files: []config.ArtifactFile{ Files: []config.ArtifactFile{
{Source: filepath.Join(whlFolder, "source.whl")}, {Source: whlLocalPath},
}, },
}, },
}, },
@ -111,7 +111,7 @@ func TestArtifactUploadForVolumes(t *testing.T) {
tmpDir := t.TempDir() tmpDir := t.TempDir()
whlFolder := filepath.Join(tmpDir, "whl") whlFolder := filepath.Join(tmpDir, "whl")
testutil.Touch(t, whlFolder, "source.whl") testutil.Touch(t, whlFolder, "source.whl")
_ = filepath.Join(whlFolder, "source.whl") whlLocalPath := filepath.Join(whlFolder, "source.whl")
b := &bundle.Bundle{ b := &bundle.Bundle{
SyncRootPath: tmpDir, SyncRootPath: tmpDir,
@ -120,10 +120,10 @@ func TestArtifactUploadForVolumes(t *testing.T) {
ArtifactPath: "/Volumes/foo/bar/artifacts", ArtifactPath: "/Volumes/foo/bar/artifacts",
}, },
Artifacts: config.Artifacts{ Artifacts: config.Artifacts{
"whl": &config.Artifact{ "whl": {
Type: config.ArtifactPythonWheel, Type: config.ArtifactPythonWheel,
Files: []config.ArtifactFile{ Files: []config.ArtifactFile{
{Source: filepath.Join(whlFolder, "source.whl")}, {Source: whlLocalPath},
}, },
}, },
}, },