From 928bb4366a7461ed8976829b57304ce253d05b21 Mon Sep 17 00:00:00 2001 From: Nenad Noveljic <18366081+nenadnoveljic@users.noreply.github.com> Date: Mon, 24 Jun 2024 17:37:14 +0200 Subject: [PATCH] revert testutil --- pkg/collector/corechecks/oracle/testutil.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/pkg/collector/corechecks/oracle/testutil.go b/pkg/collector/corechecks/oracle/testutil.go index 99397366d9065..efac221136879 100644 --- a/pkg/collector/corechecks/oracle/testutil.go +++ b/pkg/collector/corechecks/oracle/testutil.go @@ -158,10 +158,3 @@ func assertConnectionCount(t *testing.T, c *Check, max int) { require.NoError(t, err, "failed to execute the session count query") require.LessOrEqual(t, n, max, "too many sessions:") } - -// TODO: move this to a shared package managed by the Agent logs and metrics team -func assertEventPlatformEventMissing(t *testing.T, m *mocksender.MockSender, expectedRawEvent []byte, expectedEventType string) { - if m.Mock.AssertCalled(t, "EventPlatformEvent", expectedRawEvent, expectedEventType) { - assert.Fail(t, "event shouldn't have been sent") - } -}