in LibTest/io/RawDatagramSocket/asyncMap_A01_t03.dart [54:80]
void toCheck(convert, List expectedValues) async {
for (int i = 0; i < attempts; i++) {
List list = await asyncMapAndClose(convert);
int listLen = list.length;
if (listLen == 0) {
continue;
}
if (listLen >= 1 && listLen <= expectedLen) {
for (int i = 0; i < list.length; i++) {
if (list[i] is List) {
Expect.listEquals(expectedValues[0], list[i]);
} else {
Expect.isTrue(
expectedValues.contains(list[i]),
"Unexpected value ${list[i]}");
}
}
break;
}
if (listLen > expectedLen) {
Expect.fail("$listLen elements found instead of $expectedLen.");
}
if (i == attempts - 1) {
print('$listLen elements found. Look like test failed.');
}
}
}