File tree 2 files changed +9
-5
lines changed
analysis_server/test/integration/server
analyzer/lib/src/workspace 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -132,15 +132,15 @@ void main() { my_fun(); }
132
132
// error again.
133
133
await resetCompleterAndErrors ();
134
134
writeFile (generatedFilePath, 'different_fun() {}' );
135
- writeFile (commandLogPath, 'Build completed successfully ' );
135
+ writeFile (commandLogPath, 'Build completed' );
136
136
137
137
await processedNotification.future;
138
138
expect (errors, isNotEmpty);
139
139
140
140
// Now delete the file completely.
141
141
await resetCompleterAndErrors ();
142
142
File (generatedFilePath).deleteSync ();
143
- writeFile (commandLogPath, 'Build completed successfully' );
143
+ writeFile (commandLogPath, 'Build did NOT complete successfully' );
144
144
145
145
await processedNotification.future;
146
146
expect (errors, isNotEmpty);
Original file line number Diff line number Diff line change @@ -435,9 +435,13 @@ class _BazelInvocationWatcher implements PollTrigger {
435
435
/// Determines how often do we check for `command.log` changes.
436
436
static const _pollInterval = Duration (seconds: 1 );
437
437
438
- /// To confirm that a build finished, we check for this message in the
438
+ /// To confirm that a build finished, we check for these messages in the
439
439
/// `command.log` .
440
- static const _buildCompletedMsg = 'Build completed successfully' ;
440
+ static const _buildCompletedMsgs = [
441
+ 'Build completed successfully' ,
442
+ 'Build completed' ,
443
+ 'Build did NOT complete successfully' ,
444
+ ];
441
445
442
446
final _controller = StreamController <WatchEvent >.broadcast ();
443
447
final ResourceProvider _provider;
@@ -459,7 +463,7 @@ class _BazelInvocationWatcher implements PollTrigger {
459
463
bool _buildFinished (String contents) {
460
464
// Only look at the last 100 characters.
461
465
var offset = max (0 , contents.length - 100 );
462
- return contents.contains (_buildCompletedMsg , offset);
466
+ return _buildCompletedMsgs. any ((msg) => contents.contains (msg , offset) );
463
467
}
464
468
465
469
Future <String ?> _getCommandLogPath () async {
You can’t perform that action at this time.
0 commit comments