Remove test flakiness (#13252)

This commit is contained in:
Mikkel Nygaard Ravn
2017-11-30 00:22:13 +01:00
committed by GitHub
parent 368c12518b
commit bce5574cde
2 changed files with 13 additions and 5 deletions

View File

@@ -55,7 +55,7 @@ Future<Null> main() async {
final String statsFast = await driver.getText(summary);
final Match matchFast = statsRegExp.matchAsPrefix(statsFast);
expect(matchFast, isNotNull);
expect(double.parse(matchFast.group(1)), closeTo(flutterFrameRate * 2.0, 10.0));
expect(double.parse(matchFast.group(1)), closeTo(flutterFrameRate * 2.0, 5.0));
expect(double.parse(matchFast.group(2)), closeTo(flutterFrameRate, 10.0));
expect(int.parse(matchFast.group(3)), 1);
});