Skip to content

Commit de89f9e

Browse files
committed
Return early in StartCollection for unsupported tests
1 parent ff47d29 commit de89f9e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/monitortests/cli/adm_upgrade/status/monitortest.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,9 @@ func snapshotOcAdmUpgradeStatus(ch chan *snapshot) {
9797
}
9898

9999
func (w *monitor) StartCollection(ctx context.Context, adminRESTConfig *rest.Config, recorder monitorapi.RecorderWriter) error {
100+
if w.notSupportedReason != nil {
101+
return w.notSupportedReason
102+
}
100103
// TODO: The double goroutine spawn should probably be placed under some abstraction
101104
go func(ctx context.Context) {
102105
snapshots := make(chan *snapshot)

0 commit comments

Comments
 (0)