From 675aed14afc8a0a91cbddb15143b4acf6849c5ff Mon Sep 17 00:00:00 2001 From: Arko Dasgupta Date: Tue, 29 Oct 2024 16:52:06 -0700 Subject: [PATCH] add a sleep and measure benchmark mem for scale down Signed-off-by: Arko Dasgupta --- test/benchmark/tests/scale_httproutes.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/benchmark/tests/scale_httproutes.go b/test/benchmark/tests/scale_httproutes.go index 1431032bcec..5f93ae2b20a 100644 --- a/test/benchmark/tests/scale_httproutes.go +++ b/test/benchmark/tests/scale_httproutes.go @@ -11,6 +11,7 @@ import ( "context" "fmt" "testing" + "time" "github.com/stretchr/testify/require" "k8s.io/apimachinery/pkg/types" @@ -98,6 +99,8 @@ var ScaleHTTPRoutes = suite.BenchmarkTest{ gatewayAddr := kubernetes.GatewayAndHTTPRoutesMustBeAccepted(t, bSuite.Client, bSuite.TimeoutConfig, bSuite.ControllerName, kubernetes.NewGatewayRef(gatewayNN), routeNNs...) + // Add sleep to wait until watchable memory is updated + time.Sleep(10 * time.Second) // Run benchmark test at different scale. name := fmt.Sprintf("scale-down-httproutes-%d", scale) report, err := bSuite.Benchmark(t, ctx, name, gatewayAddr, requestHeaders...)