diff --git a/tests/helix/send-to-helix-basictests.targets b/tests/helix/send-to-helix-basictests.targets
index a12228b85a..d959cb7c1f 100644
--- a/tests/helix/send-to-helix-basictests.targets
+++ b/tests/helix/send-to-helix-basictests.targets
@@ -10,6 +10,9 @@
+
+ <_TestRunCommandArguments Condition="'$(OS)' != 'Windows_NT'" Include="-- RunConfiguration.TestSessionTimeout=$TEST_TIMEOUT" />
+ <_TestRunCommandArguments Condition="'$(OS)' == 'Windows_NT'" Include="-- RunConfiguration.TestSessionTimeout=%TEST_TIMEOUT%" />
@@ -21,10 +24,14 @@
<_DefaultWorkItems Include="$(WorkItemArchiveWildCard)" />
+
+ <_DefaultWorkItems TimeoutMs="600000" />
+
+ <_DefaultWorkItems Condition="'%(FileName)' == 'Aspire.Hosting.Elasticsearch.Tests'" TimeoutMs="1200000" />
%(Identity)
- $(_EnvVarSetKeyword) "TEST_NAME=%(FileName)"
+ $(_EnvVarSetKeyword) "TEST_NAME=%(FileName)" $(_ShellCommandSeparator) $(_EnvVarSetKeyword) TEST_TIMEOUT=%(TimeoutMs)
cp $(_HelixLogsPath)/TestResults.trx $(_HelixLogsPath)/$(_TestNameEnvVar).trx
copy "$(_HelixLogsPath)\TestResults.trx" "$(_HelixLogsPath)\$(_TestNameEnvVar).trx"