From 3a16dadf2f4ade829652961394fc1ecf912ee6f4 Mon Sep 17 00:00:00 2001 From: Kurt Roeckx Date: Wed, 21 Jul 2021 22:12:17 +0200 Subject: [PATCH] If authentication failed, no steps completed Signed-off-by: Kurt Roeckx --- tests/14account/02deactivate.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/14account/02deactivate.pl b/tests/14account/02deactivate.pl index 20b03d6be..d0e806b9e 100644 --- a/tests/14account/02deactivate.pl +++ b/tests/14account/02deactivate.pl @@ -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); }); };