diff --git a/src/modules/users/TestSetHostNameJob.cpp b/src/modules/users/TestSetHostNameJob.cpp index 38b1f2cdb..218eaab7b 100644 --- a/src/modules/users/TestSetHostNameJob.cpp +++ b/src/modules/users/TestSetHostNameJob.cpp @@ -140,8 +140,7 @@ UsersTests::testHostnamed() // then this one should, also; or, if the previous one failed, then this // changes to whatever-the-hostname-is, and systemd dbus seems to call that // a success, as well (since nothing changes). So no failure-expectation here. - QEXPECT_FAIL( "", "Hostname changes are access-controlled (restore)", Continue ); - QVERIFY( setSystemdHostname( m_originalHostName ) ); + setSystemdHostname( m_originalHostName ); } }