From f9d1312d709495614cab3cbeea62483d6cbfdeb5 Mon Sep 17 00:00:00 2001 From: Nenad Noveljic <18366081+nenadnoveljic@users.noreply.github.com> Date: Wed, 24 Jul 2024 09:08:15 -0400 Subject: [PATCH] [oracle] Fix sysmetrics test for RDS (DBMON-4338) (#27891) --- pkg/collector/corechecks/oracle/sysmetrics_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/collector/corechecks/oracle/sysmetrics_test.go b/pkg/collector/corechecks/oracle/sysmetrics_test.go index 19428d959c9bd..426de5b05a213 100644 --- a/pkg/collector/corechecks/oracle/sysmetrics_test.go +++ b/pkg/collector/corechecks/oracle/sysmetrics_test.go @@ -21,7 +21,9 @@ func TestSysmetrics(t *testing.T) { n, err := c.sysMetrics() assert.NoError(t, err, "failed to run sys metrics") var expected int64 - if c.connectedToPdb { + if c.hostingType == rds { + expected = 26 + } else if c.connectedToPdb { expected = 66 } else { expected = 92