From d057b736ff25c9d89bc195c79f48616882e2daca Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 29 Sep 2026 07:56:46 +0000 Subject: [PATCH] Test: make plan-analysis probes heavy enough to rank in the top 50 With SQL Agent and the whole suite running, three light executions did not reach the 50 most CPU-heavy statements. The collector's behavior is unchanged. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01E3EExwndy8Z22EK2Qpt6BK --- tests/SQLInsight.IntegrationTests/CollectorTests.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/SQLInsight.IntegrationTests/CollectorTests.cs b/tests/SQLInsight.IntegrationTests/CollectorTests.cs index 12198df..0c0a737 100644 --- a/tests/SQLInsight.IntegrationTests/CollectorTests.cs +++ b/tests/SQLInsight.IntegrationTests/CollectorTests.cs @@ -244,7 +244,8 @@ public class CollectorTests(SqlServerFixture sql) await using (var connection = new Microsoft.Data.SqlClient.SqlConnection(sql.DatabaseConnectionString(SqlServerFixture.TestDatabase))) { await connection.OpenAsync(); - for (var i = 0; i < 3; i++) + // Enough executions to rank among the 50 heaviest statements even while the rest of the suite and SQL Agent run. + for (var i = 0; i < 60; i++) { await using var command = connection.CreateCommand(); command.CommandText = """