Skip to content

Commit bdc31b1

Browse files
committed
TRT-2346: Fix not initializing adminRESTConfig
In MCO-1828 a regression was introduced as the legacyPathologicalMonitorTests code migrated from the previous legacyAlertsMonitorTests monitor test didn't properly initialize the pointer to the adminRESTConfig, leading to wrong exception list that doesn't match the one used before the change.
1 parent 83a1f05 commit bdc31b1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/monitortests/testframework/legacytestframeworkmonitortests/pathological_events_monitortest.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ func (w *legacyPathologicalMonitorTests) PrepareCollection(ctx context.Context,
3131
}
3232

3333
func (w *legacyPathologicalMonitorTests) StartCollection(ctx context.Context, adminRESTConfig *rest.Config, recorder monitorapi.RecorderWriter) error {
34+
w.adminRESTConfig = adminRESTConfig
3435
return nil
3536
}
3637

0 commit comments

Comments
 (0)