Skip to content

Commit 9c14b77

Browse files
committed
Fixed integration test
1 parent cf76e2e commit 9c14b77

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Diff for: internal/integrationtest/lib/lib_test.go

+4-2
Original file line numberDiff line numberDiff line change
@@ -589,8 +589,10 @@ func TestInstallLibraryWithDependencies(t *testing.T) {
589589
require.NoError(t, err)
590590
_, _, err = cli.Run("lib", "install", "[email protected]")
591591
require.NoError(t, err)
592-
_, _, err = cli.Run("lib", "install", "Arduino_Builtin", "--no-overwrite")
593-
require.Error(t, err)
592+
// This time it should accept the installation with the currently installed SD 1.2.3
593+
out, _, err := cli.Run("lib", "install", "Arduino_Builtin", "--no-overwrite")
594+
require.NoError(t, err)
595+
require.Contains(t, string(out), "Already installed [email protected]")
594596
}
595597

596598
func TestInstallNoDeps(t *testing.T) {

0 commit comments

Comments
 (0)