Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
… into master
  • Loading branch information
ened committed Sep 22, 2020
2 parents 06ea388 + 8894e08 commit ee6426f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions example/test_driver/flutter_uploader_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,11 @@ void main() {
testWidgets("can overwrite 'Accept' header", (WidgetTester tester) async {
var fileItem = FileItem(path: await _tmpFile(), field: "file");

final taskId = await uploader.enqueue(
final taskId = await uploader.enqueue(MultipartFormDataUpload(
url: url.toString(),
files: [fileItem],
headers: {'Accept': 'application/json, charset=utf-8'},
);
));
final res = await uploader.result.firstWhere(isCompleted(taskId));
final json = jsonDecode(res.response);

Expand Down Expand Up @@ -160,11 +160,11 @@ void main() {
});

testWidgets("can overwrite 'Accept' header", (WidgetTester tester) async {
final taskId = await uploader.enqueueBinary(
final taskId = await uploader.enqueue(RawUpload(
url: url.toString(),
path: await _tmpFile(),
headers: {'Accept': 'application/json, charset=utf-8'},
);
));
final res = await uploader.result.firstWhere(isCompleted(taskId));
final json = jsonDecode(res.response);

Expand Down

0 comments on commit ee6426f

Please sign in to comment.