@@ -160,8 +160,8 @@ func TestCoreSearchNoArgs(t *testing.T) {
160
160
for _ , v := range strings .Split (strings .TrimSpace (string (stdout )), "\n " ) {
161
161
lines = append (lines , strings .Fields (strings .TrimSpace (v )))
162
162
}
163
- // The header is printed on the first lines
164
- require .Equal (t , []string {"test:x86" , "2.0.0" , "test_core" }, lines [ 21 ] )
163
+ // Check the presence of test:[email protected]
164
+ require .Contains (t , lines , []string {"test:x86" , "2.0.0" , "test_core" })
165
165
numPlatforms := len (lines ) - 1
166
166
167
167
// same thing in JSON format, also check the number of platforms found is the same
@@ -177,8 +177,8 @@ func TestCoreSearchNoArgs(t *testing.T) {
177
177
for _ , v := range strings .Split (strings .TrimSpace (string (stdout )), "\n " ) {
178
178
lines = append (lines , strings .Fields (strings .TrimSpace (v )))
179
179
}
180
- // The header is printed on the first lines
181
- require .Equal (t , []string {"test:x86" , "3.0.0" , "test_core" }, lines [ 22 ] )
180
+ // Check the presence of test:[email protected]
181
+ require .Contains (t , lines , []string {"test:x86" , "3.0.0" , "test_core" })
182
182
numPlatforms = len (lines ) - 1
183
183
184
184
// same thing in JSON format, also check the number of platforms found is the same
0 commit comments