Skip to content

Commit

Permalink
revert testutil
Browse files Browse the repository at this point in the history
  • Loading branch information
nenadnoveljic committed Jun 24, 2024
1 parent 6555cf6 commit 928bb43
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions pkg/collector/corechecks/oracle/testutil.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
}

0 comments on commit 928bb43

Please sign in to comment.