Skip to content

Commit

Permalink
test: Ignore unknown PAM error with closing sessions
Browse files Browse the repository at this point in the history
This error is absolutely useless, and always just happens in this test
-- presumably because we shift the time?

Let's just ignore it, it's not actionable.
  • Loading branch information
martinpitt committed Jun 19, 2024
1 parent 3c8d84e commit 28c46ea
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/verify/check-system-services
Original file line number Diff line number Diff line change
Expand Up @@ -1381,6 +1381,8 @@ class TestTimers(testlib.MachineCase):
testlib.wait(lambda: "false" in m.execute(
"busctl get-property org.freedesktop.timedate1 /org/freedesktop/timedate1 org.freedesktop.timedate1 NTP"))
m.execute("timedatectl set-time '2036-01-01 12:00:00'")
# this sometimes confuses PAM session tracking
self.allow_journal_messages("cockpit-session: admin: couldn't close session: System error: Unknown error -7")
m.reboot()

m.execute("timedatectl set-time '2036-01-01 15:30:00'")
Expand Down

0 comments on commit 28c46ea

Please sign in to comment.