Skip to content

Commit

Permalink
Fixed integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
cmaglie committed Jan 16, 2025
1 parent 133c821 commit c3dedb2
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions commands/service_upload_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,12 @@ func TestDetermineBuildPathAndSketchName(t *testing.T) {
}

func TestUploadPropertiesComposition(t *testing.T) {
pmb := packagemanager.NewBuilder(nil, nil, nil, nil, nil, "test", downloader.GetDefaultConfig())
errs := pmb.LoadHardwareFromDirectory(paths.New("testdata", "upload", "hardware"))
userdir := paths.New("testdata", "upload")
hwdir := userdir.Join("hardware")
pmb := packagemanager.NewBuilder(nil, nil, hwdir, nil, nil, "test", downloader.GetDefaultConfig())
errs := pmb.LoadHardwareFromDirectory(hwdir)
require.Len(t, errs, 0)
buildPath1 := paths.New("testdata", "upload", "build_path_1")
buildPath1 := userdir.Join("build_path_1")
logrus.SetLevel(logrus.TraceLevel)
type test struct {
importDir *paths.Path
Expand Down

0 comments on commit c3dedb2

Please sign in to comment.