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 8295cb4 commit f1d2c7aCopy full SHA for f1d2c7a
test/github_test.dart
@@ -541,8 +541,9 @@ Future<ShelfTestServer> _assertUploadsPackage(String os) async {
541
os == "windows" ? "application/zip" : "application/gzip"));
542
var archive = os == "windows"
543
? ZipDecoder().decodeBytes(await collectBytes(request.read()))
544
- : TarDecoder().decodeBytes(
545
- await collectBytes(request.read().transform(gzip.decoder)));
+ : TarDecoder().decodeBytes(await collectBytes(
+ // Cast to work around dart-lang/shelf#189.
546
+ request.read().cast<List<int>>().transform(gzip.decoder)));
547
548
expect(archive.findFile("my_app/foo${os == 'windows' ? '.bat' : ''}"),
549
isNotNull);
0 commit comments