File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -484,8 +484,11 @@ void main() {
484484 try {
485485 await client.signInWithPassword (email: email1, password: password);
486486 } 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' ));
489492 }
490493 });
491494 });
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ class CustomHttpClient extends BaseClient {
1010 Future <StreamedResponse > send (BaseRequest request) async {
1111 //Return custom status code to check for usage of this client.
1212 return StreamedResponse (
13- request. finalize (),
13+ Stream . empty (),
1414 420 ,
1515 request: request,
1616 );
You can’t perform that action at this time.
0 commit comments