Skip to content

fix analyzer #51

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 4, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion test/io/utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ Future startServer() {
// want to test them here.
if (name == 'cookie' || name == 'host') return;

content['headers'][name] = values;
(content['headers'] as Map)[name] = values;
});

var body = JSON.encode(content);
Expand Down
1 change: 0 additions & 1 deletion test/mock_client_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import 'dart:async';
import 'dart:convert';

import 'package:http/http.dart' as http;
import 'package:http/src/utils.dart';
import 'package:http/testing.dart';
import 'package:unittest/unittest.dart';

Expand Down
4 changes: 2 additions & 2 deletions test/multipart_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ void main() {

test('with a stream file', () {
var request = new http.MultipartRequest('POST', dummyUrl);
var controller = new StreamController(sync: true);
var controller = new StreamController<List<int>>(sync: true);
request.files.add(new http.MultipartFile('file', controller.stream, 5));

expect(request, bodyMatches('''
Expand All @@ -201,7 +201,7 @@ void main() {

test('with an empty stream file', () {
var request = new http.MultipartRequest('POST', dummyUrl);
var controller = new StreamController(sync: true);
var controller = new StreamController<List<int>>(sync: true);
request.files.add(new http.MultipartFile('file', controller.stream, 0));

expect(request, bodyMatches('''
Expand Down
4 changes: 2 additions & 2 deletions test/response_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ void main() {

group('.fromStream()', () {
test('sets body', () {
var controller = new StreamController(sync: true);
var controller = new StreamController<List<int>>(sync: true);
var streamResponse = new http.StreamedResponse(
controller.stream, 200, contentLength: 13);
var future = http.Response.fromStream(streamResponse)
Expand All @@ -61,7 +61,7 @@ void main() {
});

test('sets bodyBytes', () {
var controller = new StreamController(sync: true);
var controller = new StreamController<List<int>>(sync: true);
var streamResponse = new http.StreamedResponse(
controller.stream, 200, contentLength: 5);
var future = http.Response.fromStream(streamResponse)
Expand Down