We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0eabc8d commit c144307Copy full SHA for c144307
pkgs/http/test/html/cache_test.dart
@@ -15,17 +15,11 @@ import 'package:test/test.dart';
15
16
import 'utils.dart';
17
18
-extension on StreamChannel<dynamic> {
19
- /// Handles the Wasm case where the runtime type is actually [double] instead
20
- /// of the JS case where its [int].
21
- Future<int> get firstAsInt async => ((await stream.first) as num).toInt();
22
-}
23
-
24
void main() {
25
late Uri url;
26
setUp(() async {
27
final channel = spawnHybridUri(Uri(path: '/test/stub_server.dart'));
28
- var port = await channel.firstAsInt;
+ var port = await (channel.stream.first as num).toInt();
29
url = echoUrl.replace(port: port);
30
});
31
0 commit comments