Skip to content

Commit a0984ab

Browse files
committed
Check LogonTime instead
1 parent 43f54e1 commit a0984ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

winlsa_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@ func TestGetLogonSessions_GetLogonSessionData(t *testing.T) {
1919
for _, luid := range luids {
2020
sessionData, err := GetLogonSessionData(&luid)
2121
require.NoError(t, err, "getting logon session data")
22-
require.NotNil(t, sessionData.Sid, "session data missing SID", fmt.Sprintf("%+v", sessionData))
22+
require.Greater(t, sessionData.LogonTime.Unix(), 0, "logon time not set in session data", fmt.Sprintf("%+v", sessionData))
2323
}
2424
}

0 commit comments

Comments
 (0)