diff --git a/test/bats/auth.bats b/test/bats/auth.bats index eb0b6dda63..b4781d58a7 100644 --- a/test/bats/auth.bats +++ b/test/bats/auth.bats @@ -80,6 +80,9 @@ generateTotpCode() { id="$(graphql_output '.data.me.id')" sessions_before_logout=$(curl -s http://127.0.0.1:4434/admin/identities/$id/sessions | jq '[.[] | select(.active == true)] | length') + curl -s http://127.0.0.1:4434/admin/identities/$id/sessions + echo $sessions_before_logout + [[ "$sessions_before_logout" -eq 1 ]] || exit 1 exec_graphql 'charlie' 'logout'