Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
fix test expectations
  • Loading branch information
denrase committed Jul 24, 2023
commit 4b34e70241b05d03859cf2410bdf78d1d25138e2
8 changes: 7 additions & 1 deletion dio/test/dio_event_processor_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ void main() {

final request = requestOptions.copyWith(
method: 'POST',
responseType: ResponseType.plain,
);
final throwable = Exception();
final dioError = DioError(
Expand Down Expand Up @@ -239,6 +240,7 @@ void main() {

final request = requestOptions.copyWith(
method: 'POST',
responseType: ResponseType.plain,
);
final throwable = Exception();
final dioError = DioError(
Expand Down Expand Up @@ -300,7 +302,11 @@ void main() {
);

final data = List.generate(scenario.contentLength, (index) => 0);
final request = requestOptions.copyWith(method: 'POST', data: data);
final request = requestOptions.copyWith(
method: 'POST',
data: data,
responseType: ResponseType.bytes,
);
final throwable = Exception();
final dioError = DioError(
requestOptions: request,
Expand Down