Fixed test
This commit is contained in:
parent
4d7cbb679e
commit
5718cebf55
1 changed files with 4 additions and 1 deletions
|
@ -62,7 +62,10 @@ main() {
|
||||||
test('proxied', () async {
|
test('proxied', () async {
|
||||||
var rq = new MockHttpRequest('GET', Uri.parse('/proxy/foo'))..close();
|
var rq = new MockHttpRequest('GET', Uri.parse('/proxy/foo'))..close();
|
||||||
await app.handleRequest(rq);
|
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');
|
expect(response, 'pub serve');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue