Skip to content

Commit 7768115

Browse files
committed
Fixed integration test failure:
<<< Run completed (err = <nil>) environment.go:52: Error Trace: D:/a/arduino-cli/arduino-cli/internal/integrationtest/environment.go:52 D:/a/arduino-cli/arduino-cli/internal/integrationtest/environment.go:63 D:/a/arduino-cli/arduino-cli/internal/integrationtest/environment.go:63 D:/a/arduino-cli/arduino-cli/internal/integrationtest/environment.go:69 D:/a/arduino-cli/arduino-cli/internal/integrationtest/board/board_test.go:638 Error: Received unexpected error: remove C:\Users\runneradmin\AppData\Local\Temp\cli2634248494\A\inventory.yaml: The process cannot access the file because it is being used by another process. Test: TestCLIStartupWithCorruptedInventory --- FAIL: TestCLIStartupWithCorruptedInventory (8.45s)
1 parent 3fcf4e7 commit 7768115

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

internal/integrationtest/board/board_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -630,6 +630,7 @@ func TestCLIStartupWithCorruptedInventory(t *testing.T) {
630630
require.NoError(t, err)
631631
_, err = f.WriteString(`data: '[{"name":"WCH;32?'","fqbn":"esp32:esp32:esp32s3camlcd"}]'`)
632632
require.NoError(t, err)
633+
require.NoError(t, f.Close())
633634

634635
// the CLI should not be able to load inventory and report it to the logs
635636
_, stderr, err := cli.Run("core", "update-index", "-v")

0 commit comments

Comments
 (0)