We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43f54e1 commit a0984abCopy full SHA for a0984ab
winlsa_test.go
@@ -19,6 +19,6 @@ func TestGetLogonSessions_GetLogonSessionData(t *testing.T) {
19
for _, luid := range luids {
20
sessionData, err := GetLogonSessionData(&luid)
21
require.NoError(t, err, "getting logon session data")
22
- require.NotNil(t, sessionData.Sid, "session data missing SID", fmt.Sprintf("%+v", sessionData))
+ require.Greater(t, sessionData.LogonTime.Unix(), 0, "logon time not set in session data", fmt.Sprintf("%+v", sessionData))
23
}
24
0 commit comments