Skip to content

Commit 3a16dad

Browse files
committed
If authentication failed, no steps completed
Signed-off-by: Kurt Roeckx <[email protected]>
1 parent 6ef0340 commit 3a16dad

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/14account/02deactivate.pl

+3-1
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,15 @@ sub matrix_deactivate_account
4343

4444
my $body = decode_json $resp->content;
4545

46-
assert_json_keys( $body, qw( error errcode params completed flows ));
46+
assert_json_keys( $body, qw( error errcode params flows ));
4747

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

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

53+
exists $body->{completed} and die "Got an unexpected a 'completed' key";
54+
5355
Future->done(1);
5456
});
5557
};

0 commit comments

Comments
 (0)