Skip to content

Commit 8d5726d

Browse files
CopilotJustinGrote
andauthored
Fix CanHandleMissingProfilePaths test: use .ToString() on GetVariable result
Agent-Logs-Url: https://github.com/PowerShell/PowerShellEditorServices/sessions/6d4f3ac9-ed54-4532-97ae-33f69934f59a Co-authored-by: JustinGrote <15258962+JustinGrote@users.noreply.github.com>
1 parent 25ebd4b commit 8d5726d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/PowerShellEditorServices.Test/Session/PsesInternalHostTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ await psesHost.ExecuteDelegateAsync(
119119
pwsh.SetProfileVariable(emptyProfilePaths);
120120
pwsh.LoadProfileScripts(emptyProfilePaths);
121121

122-
Assert.Equal(emptyProfilePaths.CurrentUserCurrentHost, pwsh.Runspace.SessionStateProxy.GetVariable("PROFILE"));
122+
Assert.Equal(emptyProfilePaths.CurrentUserCurrentHost, pwsh.Runspace.SessionStateProxy.GetVariable("PROFILE")?.ToString());
123123
Assert.Empty(pwsh.Commands.Commands);
124124
},
125125
CancellationToken.None);

0 commit comments

Comments
 (0)