Skip to content

Commit 3c26224

Browse files
committed
Check that notices is a List before casting in test
1 parent cd5de52 commit 3c26224

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

dwds/test/common/chrome_proxy_service_common.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2065,6 +2065,7 @@ void runTests({
20652065
// Make sure that a notice was provided in the expected format.
20662066
final notices = report.json?['notices'];
20672067
expect(notices, isNotNull);
2068+
expect(notices is List, isTrue);
20682069
final noticeList = (notices as List).cast<Map>();
20692070
expect(noticeList, isNotEmpty);
20702071
final message = noticeList[0]['message'];

0 commit comments

Comments
 (0)