Fixed test

This commit is contained in:
Tobe O 2017-09-24 14:51:47 -04:00
parent 4d7cbb679e
commit 5718cebf55

View file

@ -62,7 +62,10 @@ main() {
test('proxied', () async {
var rq = new MockHttpRequest('GET', Uri.parse('/proxy/foo'))..close();
await app.handleRequest(rq);
var response = await rq.response.transform(UTF8.decoder).join();
var response = await rq.response
.transform(GZIP.decoder)
.transform(UTF8.decoder)
.join();
expect(response, 'pub serve');
});