Skip to content

Commit d2eb4ac

Browse files
committed
Skip test in CLM
1 parent 56e1ccb commit d2eb4ac

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/PowerShellEditorServices.Test.E2E/DebugAdapterProtocolMessageTests.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ public async Task CanRunPesterTestFile()
531531
[InlineData("-ProcessId 1234 -RunspaceId 5678", null, null, 1234, 5678, null)]
532532
[InlineData("-ProcessId 1234 -RunspaceId 5678 -ComputerName comp", "comp", null, 1234, 5678, null)]
533533
[InlineData("-CustomPipeName testpipe -RunspaceName rs-name", null, "testpipe", 0, 0, "rs-name")]
534-
[Theory]
534+
[SkippableTheory]
535535
public async Task CanLaunchScriptWithNewChildAttachSession(
536536
string paramString,
537537
string? expectedComputerName,
@@ -540,6 +540,9 @@ public async Task CanLaunchScriptWithNewChildAttachSession(
540540
int expectedRunspaceId,
541541
string? expectedRunspaceName)
542542
{
543+
Skip.If(PsesStdioLanguageServerProcessHost.RunningInConstrainedLanguageMode,
544+
"PowerShellEditorServices.Command is not signed to run FLM in Constrained Language Mode.");
545+
543546
string script = NewTestFile($"Start-DebugAttachSession {paramString}");
544547

545548
await client.LaunchScript(script);

0 commit comments

Comments
 (0)