telemetry(observations): fix the details flag check (#3960)

* telemetry(observations): fix the details flag check

* telemetry(observations): fix the test names
This commit is contained in:
Sepehr authored and GitHub committed 2023-10-31 09:53:49 -07:00
1 parent b000aa3068
commit 4dce290aeb
6 files changed
+20 -8

No files matched your search

@@ -889,6 +889,7 @@ func TestAuthenticate_Ldap(t *testing.T) {
Mutex: testLock,
Name: "test",
})
c.EventerConfig.TelemetryEnabled = true
require.NoError(t, event.InitSysEventer(testLogger, testLock, "use-Test_Authenticate", event.WithEventerConfig(&c.EventerConfig)))
iamRepoFn := func() (*iam.Repository, error) {
return iam.TestRepo(t, testConn, testRootWrapper), nil
@@ -520,6 +520,7 @@ func TestAuthenticate_Password(t *testing.T) {
Mutex: testLock,
Name: "test",
})
c.EventerConfig.TelemetryEnabled = true
require.NoError(t, event.InitSysEventer(testLogger, testLock, "use-Test_Authenticate", event.WithEventerConfig(&c.EventerConfig)))
sinkFileName := c.ObservationEvents.Name()
t.Cleanup(func() {