diff --git a/pkg/internal/checkup/checkup.go b/pkg/internal/checkup/checkup.go index 930fce16..fc1f184e 100644 --- a/pkg/internal/checkup/checkup.go +++ b/pkg/internal/checkup/checkup.go @@ -102,6 +102,10 @@ func (c *Checkup) Run(ctx context.Context) error { } c.results.VMUnderTestActualNodeName = c.vmi.Status.NodeName + if c.results.OslatMaxLatency > c.cfg.OslatLatencyThreshold { + return fmt.Errorf("oslat Max Latency measured %s exceeded the given threshold %s", + c.results.OslatMaxLatency.String(), c.cfg.OslatLatencyThreshold.String()) + } return nil }