File tree 2 files changed +6
-3
lines changed 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -484,8 +484,11 @@ void main() {
484
484
try {
485
485
await client.signInWithPassword (email: email1, password: password);
486
486
} catch (error) {
487
- expect (error, isA <AuthException >());
488
- expect ((error as AuthException ).statusCode, '420' );
487
+ expect (error, isA <AuthUnknownException >());
488
+ error as AuthUnknownException ;
489
+ expect (error.statusCode, '420' );
490
+ expect (error.originalError, isA< http.Response > ());
491
+ expect (error.message, contains ('empty response' ));
489
492
}
490
493
});
491
494
});
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ class CustomHttpClient extends BaseClient {
10
10
Future <StreamedResponse > send (BaseRequest request) async {
11
11
//Return custom status code to check for usage of this client.
12
12
return StreamedResponse (
13
- request. finalize (),
13
+ Stream . empty (),
14
14
420 ,
15
15
request: request,
16
16
);
You can’t perform that action at this time.
0 commit comments