Skip to content

Commit 7e1bc9f

Browse files
committed
Fixed WASM runtime
1 parent a63d6ce commit 7e1bc9f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

pkgs/http/test/html/cache_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ void main() {
1818
late Uri url;
1919
setUp(() async {
2020
final channel = spawnHybridUri(Uri(path: '/test/stub_server.dart'));
21-
var port = await channel.stream.first as int;
21+
var port = await (channel.stream.first as num).toInt();
2222
url = echoUrl.replace(port: port);
2323
});
2424

pkgs/http/test/html/client_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ void main() {
1818
setUpAll(() async {
1919
final channel =
2020
spawnHybridUri(Uri(path: '/test/stub_server.dart'), stayAlive: true);
21-
port = await channel.stream.first as int;
21+
port = await (channel.stream.first as num).toInt();
2222
});
2323

2424
test('#send a StreamedRequest', () async {

pkgs/http/test/html/streamed_request_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ void main() {
1818
setUpAll(() async {
1919
final channel =
2020
spawnHybridUri(Uri(path: '/test/stub_server.dart'), stayAlive: true);
21-
var port = await channel.stream.first as int;
21+
var port = await (channel.stream.first as num).toInt();
2222
url = echoUrl.replace(port: port);
2323
});
2424
group('contentLength', () {

0 commit comments

Comments
 (0)