Add log to understand flakiness of commands_test (#11720)

The flakiness of commands_test is generally visible via:

```
drive:stdout:   Expected: 'log: paint'
drive:stdout:     Actual: ''
drive:stdout:      Which: is different. Both strings start the same, but the actual value is missing the following trailing characters: log: paint ...
```

By returning the name of the test we will be able to understand if
another test is running by reading the `Actual` value
This commit is contained in:
Carlo Bernaschina
2017-08-22 09:54:51 -07:00
committed by GitHub
parent 7c3a45dc6e
commit a8aff38811
3 changed files with 9 additions and 3 deletions

View File

@@ -324,7 +324,7 @@ class FlutterDriverExtension {
Future<RequestDataResult> _requestData(Command command) async {
final RequestData requestDataCommand = command;
return new RequestDataResult(_requestDataHandler == null ? '' : await _requestDataHandler(requestDataCommand.message));
return new RequestDataResult(_requestDataHandler == null ? 'No requestData Extension registered' : await _requestDataHandler(requestDataCommand.message));
}
Future<SetFrameSyncResult> _setFrameSync(Command command) async {