mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Remove -Force from Import-Module in tests
This commit is contained in:
committed by
Jason Shirk
parent
ab06adf774
commit
fab25c5d50
@@ -34,7 +34,7 @@ Describe "Breakpoints when set should be hit" -tag "CI" {
|
||||
|
||||
Describe "It should be possible to reset runspace debugging" -tag "Feature" {
|
||||
BeforeAll {
|
||||
import-module $helperModule -force
|
||||
import-module $helperModule
|
||||
$path = setup -pass -f TestScript_2.ps1 -content $script2
|
||||
$scriptPath = "$testdrive/TestScript_2.ps1"
|
||||
$iss = [initialsessionstate]::CreateDefault2();
|
||||
|
||||
@@ -5,7 +5,7 @@ $helperModule = join-path $common Test.Helpers.psm1
|
||||
Describe 'native commands lifecycle' -tags 'Feature' {
|
||||
|
||||
BeforeAll {
|
||||
Import-Module $helperModule -force
|
||||
Import-Module $helperModule
|
||||
$powershell = Join-Path -Path $PsHome -ChildPath "powershell"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user