Skip to content

Commit 35d8b33

Browse files
committed
Remove service start/stop commands from Get-SqlDscAudit integration tests
1 parent a07cbed commit 35d8b33

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

tests/Integration/Commands/Get-SqlDscAudit.Integration.Tests.ps1

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,6 @@ BeforeAll {
3131

3232
Describe 'Get-SqlDscAudit' -Tag @('Integration_SQL2017', 'Integration_SQL2019', 'Integration_SQL2022') {
3333
BeforeAll {
34-
# Starting the named instance SQL Server service prior to running tests.
35-
Start-Service -Name 'MSSQL$DSCSQLTEST' -Verbose -ErrorAction 'Stop'
36-
3734
$script:mockInstanceName = 'DSCSQLTEST'
3835
$script:mockComputerName = Get-ComputerName
3936

@@ -73,9 +70,6 @@ Describe 'Get-SqlDscAudit' -Tag @('Integration_SQL2017', 'Integration_SQL2019',
7370
}
7471

7572
Disconnect-SqlDscDatabaseEngine -ServerObject $script:serverObject
76-
77-
# Stop the named instance SQL Server service to save memory on the build worker.
78-
Stop-Service -Name 'MSSQL$DSCSQLTEST' -Verbose -ErrorAction 'Stop'
7973
}
8074

8175
Context 'When getting all SQL Server audits' {

0 commit comments

Comments
 (0)