mirror of
https://github.com/prometheus-community/windows_exporter
synced 2025-02-18 04:57:20 +00:00
17 lines
328 B
Go
17 lines
328 B
Go
package secur32_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/prometheus-community/windows_exporter/internal/headers/secur32"
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestGetLogonSessions(t *testing.T) {
|
|
t.Parallel()
|
|
|
|
sessionData, err := secur32.GetLogonSessions()
|
|
require.NoError(t, err)
|
|
require.NotEmpty(t, sessionData)
|
|
}
|