Skip to content

Commit

Permalink
Fixed integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
cmaglie committed Feb 4, 2025
1 parent 31c6727 commit eb5fe21
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions internal/integrationtest/board/board_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -237,10 +237,10 @@ func TestBoardListallWithManuallyInstalledPlatform(t *testing.T) {
"platform": {
"metadata": {
"id": "arduino-beta-development:samd",
"manually_installed": true
},
"release": {
"installed": true,
"version": "1.8.11",
"name": "Arduino SAMD (32-bits ARM Cortex-M0+) Boards"
},
}
Expand All @@ -251,10 +251,10 @@ func TestBoardListallWithManuallyInstalledPlatform(t *testing.T) {
"platform": {
"metadata": {
"id": "arduino-beta-development:samd",
"manually_installed": true
},
"release": {
"installed": true,
"version": "1.8.11",
"name": "Arduino SAMD (32-bits ARM Cortex-M0+) Boards"
},
}
Expand Down
6 changes: 3 additions & 3 deletions internal/integrationtest/board/hardware_loading_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,9 @@ func TestHardwareLoading(t *testing.T) {
"platforms": [
{
"id": "my_avr_platform:avr",
"installed_version": "9.9.9",
"installed_version": "",
"releases": {
"9.9.9": {
"": {
"name": "My AVR Boards",
"boards": [
{
Expand All @@ -207,7 +207,7 @@ func TestHardwareLoading(t *testing.T) {
"id": "my_symlinked_avr_platform:avr",
"manually_installed": true,
"releases": {
"9.9.9": {
"": {
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions internal/integrationtest/compile_4/compile_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -828,7 +828,7 @@ type buildOptions struct {
Verbose bool
}

func tryBuild(t *testing.T, env *integrationtest.Environment, cli *integrationtest.ArduinoCLI, fqbn string, optionsArg ...*buildOptions) (*builderOutput, error) {
func tryBuild(t *testing.T, _ *integrationtest.Environment, cli *integrationtest.ArduinoCLI, fqbn string, optionsArg ...*buildOptions) (*builderOutput, error) {
var options *buildOptions
if len(optionsArg) == 0 {
options = &buildOptions{}
Expand Down Expand Up @@ -870,7 +870,7 @@ func tryBuild(t *testing.T, env *integrationtest.Environment, cli *integrationte
return &out, err
}

func tryPreprocess(t *testing.T, env *integrationtest.Environment, cli *integrationtest.ArduinoCLI, fqbn string) (*paths.Path, []byte, error) {
func tryPreprocess(t *testing.T, _ *integrationtest.Environment, cli *integrationtest.ArduinoCLI, fqbn string) (*paths.Path, []byte, error) {
subTestName := strings.Split(t.Name(), "/")[1]
sketchPath, err := paths.New("testdata", subTestName).Abs()
require.NoError(t, err)
Expand Down
4 changes: 2 additions & 2 deletions internal/integrationtest/core/core_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -516,9 +516,9 @@ func TestCoreListAllManuallyInstalledCore(t *testing.T) {
requirejson.Contains(t, stdout, `{"platforms":[
{
"id": "arduino-beta-development:avr",
"latest_version": "1.8.3",
"latest_version": "",
"releases": {
"1.8.3": {
"": {
"name": "Arduino AVR Boards"
}
}
Expand Down
Empty file.

0 comments on commit eb5fe21

Please sign in to comment.