Remove -Force from Import-Module in tests

This commit is contained in:
Sergei Vorobev
2017-01-12 14:25:07 -08:00
committed by Jason Shirk
parent ab06adf774
commit fab25c5d50
6 changed files with 6 additions and 6 deletions
@@ -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"
}