Skip to content

Commit 7e1920b

Browse files
committed
Update deps and fix test
1 parent 10d071e commit 7e1920b

File tree

3 files changed

+11
-10
lines changed

3 files changed

+11
-10
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,5 @@ plugins/http2_adapter/.dart_tool/
3131
plugins/http2_adapter/.pub/
3232
plugins/http2_adapter/.idea/
3333
plugins/http2_adapter/.exampl
34+
35+
.vscode/

dio/pubspec.yaml

+5-7
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,12 @@ environment:
77
sdk: ">=2.12.0-0 <3.0.0"
88

99
dependencies:
10-
http_parser: ^4.0.0-nullsafety
11-
path: ^1.8.0-nullsafety.3
10+
http_parser: ^4.0.0
11+
path: ^1.8.0
1212

1313
dev_dependencies:
14-
test: ^1.16.0-nullsafety.13
15-
pedantic: ^1.10.0-nullsafety
16-
test_coverage: ^0.4.1
14+
test: ^1.16.0
15+
pedantic: ^1.10.0
16+
test_coverage: ^0.5.0
1717
# flutter_test:
1818
# sdk: flutter
19-
dependency_overrides:
20-
http_parser: ^4.0.0-nullsafety

dio/test/formdata_test.dart

+4-3
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@ void main() {
2323
var f = File('../dio/test/_formdata');
2424
var content = f.readAsStringSync();
2525
content = content.replaceAll('--dio-boundary-3788753558', fm.boundary);
26-
assert(utf8.decode(fmStr, allowMalformed: true) == content);
27-
expect(fm.readAsBytes(),throwsA(const TypeMatcher<StateError>()));
26+
expect(utf8.decode(fmStr, allowMalformed: true).replaceAll('\r\n', '\n'),
27+
content);
28+
expect(fm.readAsBytes(), throwsA(const TypeMatcher<StateError>()));
2829

2930
var fm1 = FormData();
3031
fm1.fields.add(MapEntry('name', 'wendux'));
@@ -38,6 +39,6 @@ void main() {
3839
'files[]',
3940
await MultipartFile.fromFile('../dio/test/_testfile', filename: '2.txt'),
4041
));
41-
assert(fmStr.length==fm1.length);
42+
assert(fmStr.length == fm1.length);
4243
});
4344
}

0 commit comments

Comments
 (0)