diff --git a/x-pack/filebeat/input/entityanalytics/provider/okta/okta_test.go b/x-pack/filebeat/input/entityanalytics/provider/okta/okta_test.go index cf3f1423006..51701775ca5 100644 --- a/x-pack/filebeat/input/entityanalytics/provider/okta/okta_test.go +++ b/x-pack/filebeat/input/entityanalytics/provider/okta/okta_test.go @@ -81,7 +81,7 @@ func TestOktaDoFetch(t *testing.T) { } var wantDevices []Device if test.wantDevices { - err := json.Unmarshal([]byte(users), &wantDevices) + err := json.Unmarshal([]byte(devices), &wantDevices) if err != nil { t.Fatalf("failed to unmarshal device data: %v", err) }