Remove uses of deprecated constants and change int.parse to int.tryParse (#19575)

* Remove uses of deprecated constants
* Change int.parse to int.tryParse where appropriate
This commit is contained in:
Leaf Petersen
2018-07-20 15:07:24 -07:00
committed by GitHub
parent 35346b4966
commit 32f94443cc
40 changed files with 77 additions and 80 deletions

View File

@@ -11,7 +11,7 @@ import 'package:flutter_test/flutter_test.dart';
void main() {
test('test smoke test -- this test should fail', () async {
if (system.Process.killPid(system.pid, system.ProcessSignal.SIGSEGV)) { // ignore: deprecated_member_use
if (system.Process.killPid(system.pid, system.ProcessSignal.sigsegv)) {
print('system.Process.killPid returned before the process ended!');
print('Sleeping for a few seconds just in case signal delivery is delayed or our signal handler is being slow...');
system.sleep(const Duration(seconds: 10)); // don't sleep too much, we must not time out

View File

@@ -8,5 +8,5 @@ import 'dart:io' as system;
// see //flutter/dev/bots/test.dart
void main() {
system.Process.killPid(system.pid, system.ProcessSignal.SIGSEGV); // ignore: deprecated_member_use
system.Process.killPid(system.pid, system.ProcessSignal.sigsegv);
}