Skip to content

Commit f1d2c7a

Browse files
committed
Fix tests that were broken by dart-lang/shelf#189
1 parent 8295cb4 commit f1d2c7a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/github_test.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -541,8 +541,9 @@ Future<ShelfTestServer> _assertUploadsPackage(String os) async {
541541
os == "windows" ? "application/zip" : "application/gzip"));
542542
var archive = os == "windows"
543543
? ZipDecoder().decodeBytes(await collectBytes(request.read()))
544-
: TarDecoder().decodeBytes(
545-
await collectBytes(request.read().transform(gzip.decoder)));
544+
: TarDecoder().decodeBytes(await collectBytes(
545+
// Cast to work around dart-lang/shelf#189.
546+
request.read().cast<List<int>>().transform(gzip.decoder)));
546547

547548
expect(archive.findFile("my_app/foo${os == 'windows' ? '.bat' : ''}"),
548549
isNotNull);

0 commit comments

Comments
 (0)