diff --git a/internal/pkg/logind/logind.go b/internal/pkg/logind/logind.go index 814244ce3..d69e3cb82 100644 --- a/internal/pkg/logind/logind.go +++ b/internal/pkg/logind/logind.go @@ -21,7 +21,7 @@ const ( logindObject = dbus.ObjectPath("/org/freedesktop/login1") logindInterface = "org.freedesktop.login1.Manager" - inhibitMaxDelay = 2 * constants.KubeletShutdownGracePeriod + inhibitMaxDelay = 40 * constants.KubeletShutdownGracePeriod ) type logindMock struct { diff --git a/internal/pkg/logind/logind_test.go b/internal/pkg/logind/logind_test.go index a268e1c53..abaace4b3 100644 --- a/internal/pkg/logind/logind_test.go +++ b/internal/pkg/logind/logind_test.go @@ -49,7 +49,7 @@ func TestIntegration(t *testing.T) { d, err := kubeletConn.CurrentInhibitDelay() require.NoError(t, err) - assert.Equal(t, 2*constants.KubeletShutdownGracePeriod, d) + assert.Equal(t, 40*constants.KubeletShutdownGracePeriod, d) t.Log("acquiring inhibit lock")