Skip to content

Commit 93beecf

Browse files
committed
[WIP] Fix the test
1 parent 717c5a3 commit 93beecf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/MSBuildDeviceIntegration/Tests/UncaughtExceptionTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,16 +174,16 @@ public void OnCatch (Java.Lang.Throwable t)
174174
MonitorAdbLogcat (
175175
(string line) => {
176176
foreach (LogcatLine ll in expectedLogLines) {
177-
if (!line.StartsWith (ll.Text, StringComparison.Ordinal)) {
177+
if (line.IndexOf (ll.Text, StringComparison.Ordinal) < 0) {
178178
continue;
179179
}
180180
ll.Found = true;
181181
ll.Count++;
182182
ll.SequenceNumber = sequenceCounter++;
183183
break;
184184
}
185-
return true;
186-
}, logcatPath, 30);
185+
return false; // we must examine all the lines, and returning `true` aborts the monitoring process
186+
}, logcatPath, 15);
187187
}
188188

189189
AssertValidLine (0, 0);

0 commit comments

Comments
 (0)