File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ void main() {
18
18
late Uri url;
19
19
setUp (() async {
20
20
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 () ;
22
22
url = echoUrl.replace (port: port);
23
23
});
24
24
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ void main() {
18
18
setUpAll (() async {
19
19
final channel =
20
20
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 () ;
22
22
});
23
23
24
24
test ('#send a StreamedRequest' , () async {
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ void main() {
18
18
setUpAll (() async {
19
19
final channel =
20
20
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 () ;
22
22
url = echoUrl.replace (port: port);
23
23
});
24
24
group ('contentLength' , () {
You can’t perform that action at this time.
0 commit comments