File tree 2 files changed +2
-8
lines changed
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) {
80
80
// Verifies library is correctly returned
81
81
stdout , _ , err = cli .Run ("outdated" )
82
82
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" )
90
84
}
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ func TestUpgrade(t *testing.T) {
58
58
// Verifies cores and libraries have been updated
59
59
stdout , _ , err = cli .Run ("outdated" )
60
60
require .NoError (t , err )
61
- require .Equal (t , string (stdout ), "\n " )
61
+ require .Contains (t , string (stdout ), "No libraries update is available. " )
62
62
}
63
63
64
64
func TestUpgradeUsingLibraryWithInvalidVersion (t * testing.T ) {
You can’t perform that action at this time.
0 commit comments