File tree Expand file tree Collapse file tree 2 files changed +2
-8
lines changed
Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -80,11 +80,5 @@ func TestOutdatedUsingLibraryWithInvalidVersion(t *testing.T) {
8080 // Verifies library is correctly returned
8181 stdout , _ , err = cli .Run ("outdated" )
8282 require .NoError (t , err )
83- lines := strings .Split (string (stdout ), "\n " )
84- l := make ([][]string , len (lines ))
85- for i := range lines {
86- lines [i ] = strings .TrimSpace (lines [i ])
87- l [i ] = strings .Split (lines [i ], " " )
88- }
89- require .Contains (t , l [1 ][0 ], "WiFi101" )
83+ require .Contains (t , string (stdout ), "WiFi101" )
9084}
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ func TestUpgrade(t *testing.T) {
5858 // Verifies cores and libraries have been updated
5959 stdout , _ , err = cli .Run ("outdated" )
6060 require .NoError (t , err )
61- require .Equal (t , string (stdout ), "\n " )
61+ require .Contains (t , string (stdout ), "No libraries update is available. " )
6262}
6363
6464func TestUpgradeUsingLibraryWithInvalidVersion (t * testing.T ) {
You can’t perform that action at this time.
0 commit comments