Skip to content

Commit

Permalink
test: wait for sessions being closed
Browse files Browse the repository at this point in the history
If a session in closing state, the user state will be in online.

Fixes #32698.
  • Loading branch information
yuwata authored and DaanDeMeyer committed May 17, 2024
1 parent c84b7a5 commit fc51125
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/units/TEST-35-LOGIN.sh
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +596,7 @@ testcase_list_users_sessions_seats() {
return
fi

assert_eq "$(loginctl list-users --no-legend | awk '$2 == "logind-test-user" { print $4 }')" lingering
timeout 30 bash -c "until [[ \"\$(loginctl list-users --no-legend | awk '\$2 == \"logind-test-user\" { print \$4 }')\" == lingering ]]; do sleep 1; done"
}

teardown_stop_idle_session() (
Expand Down

0 comments on commit fc51125

Please sign in to comment.