@@ -161,7 +161,8 @@ func TestCoreSearchNoArgs(t *testing.T) {
161
161
lines = append (lines , strings .Fields (strings .TrimSpace (v )))
162
162
}
163
163
// The header is printed on the first lines
164
- require .Equal (t , []string {"test:x86" , "2.0.0" , "test_core" }, lines [20 ])
164
+ // TODO: make test more resilient (no hardcoded line number)
165
+ require .Contains (t , []string {"test:x86" , "2.0.0" , "test_core" }, lines [21 ])
165
166
numPlatforms := len (lines ) - 1
166
167
167
168
// same thing in JSON format, also check the number of platforms found is the same
@@ -178,7 +179,8 @@ func TestCoreSearchNoArgs(t *testing.T) {
178
179
lines = append (lines , strings .Fields (strings .TrimSpace (v )))
179
180
}
180
181
// The header is printed on the first lines
181
- require .Equal (t , []string {"test:x86" , "2.0.0" , "test_core" }, lines [21 ])
182
+ // TODO: make test more resilient (no hardcoded line number)
183
+ require .Equal (t , []string {"test:x86" , "2.0.0" , "test_core" }, lines [22 ])
182
184
numPlatforms = len (lines ) - 1
183
185
184
186
// same thing in JSON format, also check the number of platforms found is the same
0 commit comments