From e4ab18af4f3f55ff5d32e3e9bbfff02d48a8ed63 Mon Sep 17 00:00:00 2001 From: Chris Schinnerl Date: Wed, 6 Mar 2024 16:00:55 +0100 Subject: [PATCH] e2e: sleep before scan --- internal/test/e2e/cluster_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/test/e2e/cluster_test.go b/internal/test/e2e/cluster_test.go index 9f9699b7d..4c96cc989 100644 --- a/internal/test/e2e/cluster_test.go +++ b/internal/test/e2e/cluster_test.go @@ -2491,6 +2491,10 @@ func TestHostScan(t *testing.T) { } scanHost := func() error { + // timing on the CI can be weird, wait a bit to make sure time passes + // between scans + time.Sleep(time.Millisecond) + resp, err := w.RHPScan(context.Background(), hk, hostIP, 10*time.Second) tt.OK(err) if resp.ScanError != "" {