Unverified Commit 73c32545 authored by Danny Tuppeny's avatar Danny Tuppeny Committed by GitHub

Fix device daemon test when desktop or web are enabled (#45172)

parent fb5e4908
......@@ -60,7 +60,8 @@ void main() {
'id': 2,
'method': 'device.getDevices',
})}]');
response = await stream.first;
// Skip other device.added events that may fire (desktop/web devices).
response = await stream.firstWhere((Map<String, dynamic> response) => response['event'] != 'device.added');
expect(response['id'], 2);
expect(response['error'], isNull);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment