mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 04:36:39 +00:00
remove dependency on native GetHostname
This commit is contained in:
1 parent
b5cfc575d3
commit
1b97c954ea
3 files changed
+2
-55
No files matched your search
@@ -99,7 +99,7 @@ namespace PSTests
|
||||
// The process should return an exit code of 0 on success
|
||||
Assert.Equal(0, process.ExitCode);
|
||||
// It should be the same as what our platform code returns
|
||||
Assert.Equal(hostname, Platform.NonWindowsGetMachineName());
|
||||
Assert.Equal(hostname, System.Management.Automation.Environment.MachineName);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user