Skip to content

Commit

Permalink
Fixed integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
cmaglie committed Nov 16, 2023
1 parent f85af84 commit 23b0153
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions internal/integrationtest/compile_3/compile_commands_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,9 @@
package compile_test

import (
"encoding/json"
"testing"

"github.com/arduino/arduino-cli/internal/integrationtest"
"github.com/arduino/go-paths-helper"
"github.com/stretchr/testify/require"
"go.bug.st/testifyjson/requirejson"
)
Expand All @@ -36,13 +34,9 @@ func TestCompileCommandsJSONGeneration(t *testing.T) {
require.NoError(t, err)

// Create a test sketch
out, _, err := cli.Run("sketch", "new", "Test", "--format", "json")
_, _, err = cli.Run("sketch", "new", "Test")
require.NoError(t, err)
var s struct {
Path string `json:"sketch_path"`
}
require.NoError(t, json.Unmarshal(out, &s))
sketchPath := paths.New(s.Path)
sketchPath := cli.WorkingDir().Join("Test")
buildPath := sketchPath.Join("build")

{
Expand Down

0 comments on commit 23b0153

Please sign in to comment.