We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 717c5a3 commit 93beecfCopy full SHA for 93beecf
tests/MSBuildDeviceIntegration/Tests/UncaughtExceptionTests.cs
@@ -174,16 +174,16 @@ public void OnCatch (Java.Lang.Throwable t)
174
MonitorAdbLogcat (
175
(string line) => {
176
foreach (LogcatLine ll in expectedLogLines) {
177
- if (!line.StartsWith (ll.Text, StringComparison.Ordinal)) {
+ if (line.IndexOf (ll.Text, StringComparison.Ordinal) < 0) {
178
continue;
179
}
180
ll.Found = true;
181
ll.Count++;
182
ll.SequenceNumber = sequenceCounter++;
183
break;
184
185
- return true;
186
- }, logcatPath, 30);
+ return false; // we must examine all the lines, and returning `true` aborts the monitoring process
+ }, logcatPath, 15);
187
188
189
AssertValidLine (0, 0);
0 commit comments