-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix unstable widget test on windows/ubuntu (#47)
* fix wrong path string * check mounted? See: https://github.com/sensuikan1973/pedax/runs/1963322568 * 200millisec -> 400millisec * use path package
- Loading branch information
1 parent
a422a10
commit 3b2f913
Showing
11 changed files
with
36 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import 'package:flutter_test/flutter_test.dart'; | ||
import 'package:meta/meta.dart'; | ||
|
||
// For EdaxServer: expect move response ~ rendering is less than 200 millisec | ||
// For EdaxServer: expect move response ~ rendering is less than 400 millisec | ||
@isTest | ||
Future<void> delay200millisec(WidgetTester tester) async => Future<void>.delayed(const Duration(milliseconds: 200)); | ||
Future<void> delay400millisec(WidgetTester tester) async => Future<void>.delayed(const Duration(milliseconds: 400)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,10 @@ | ||
import 'package:flutter_test/flutter_test.dart'; | ||
import 'package:meta/meta.dart'; | ||
|
||
import 'async_delay.dart'; | ||
|
||
@isTest | ||
Future<void> waitEdaxSetuped(WidgetTester tester) async { | ||
await Future<void>.delayed(const Duration(seconds: 1)); | ||
await tester.pump(); // after spwaning EdaxServer has completed, render UI. | ||
await delay200millisec(tester); // awit EdaxServer execute edax_init. | ||
await Future<void>.delayed(const Duration(seconds: 1)); // awit EdaxServer execute edax_init. | ||
await tester.pump(); // after edax init has completed, render UI. | ||
} |