Skip to content

Commit

Permalink
If authentication failed, no steps completed
Browse files Browse the repository at this point in the history
Signed-off-by: Kurt Roeckx <[email protected]>
  • Loading branch information
kroeckx committed Jul 22, 2021
1 parent ba1157a commit ef926b8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/14account/02deactivate.pl
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,15 @@ sub matrix_deactivate_account

my $body = decode_json $resp->content;

assert_json_keys( $body, qw( error errcode params completed flows ));
assert_json_keys( $body, qw( error errcode params flows ));

my $errcode = $body->{errcode};

$errcode eq "M_FORBIDDEN" or
die "Expected errcode to be M_FORBIDDEN but was $errcode";

exists $body->{completed} and die "Got an unexpected a 'completed' key";

Future->done(1);
});
};
Expand Down

0 comments on commit ef926b8

Please sign in to comment.