add heartbeat (#29056)

This commit is contained in:
Dan Field 2019-03-08 16:12:27 -08:00 committed by GitHub
parent cb1b6502f1
commit 3af88c5550
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -473,7 +473,12 @@ Future<void> _processTestOutput(
Stream<String> testOutput,
bq.TabledataResourceApi tableData,
) async {
final Timer heartbeat = Timer.periodic(const Duration(seconds: 30), (Timer timer) {
print('Processing...');
});
await testOutput.forEach(formatter.processRawOutput);
heartbeat.cancel();
formatter.finish();
if (tableData == null || formatter.tests.isEmpty) {
return;