Skip to content

Commit d2afa93

Browse files
committed
Use Get-SqlDscDateTime to capture point-in-time in Restore-SqlDscDatabase integration tests
1 parent 4f28b24 commit d2afa93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/Integration/Commands/Restore-SqlDscDatabase.Integration.Tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,7 @@ INSERT INTO dbo.TestData (Id, InsertTime, Value) VALUES (1, GETDATE(), 'Initial'
651651
Start-Sleep -Seconds 2
652652

653653
# Capture the point-in-time before adding more data
654-
$script:pointInTime = Get-Date
654+
$script:pointInTime = Get-SqlDscDateTime -ServerObject $script:serverObject
655655

656656
# Wait another moment
657657
Start-Sleep -Seconds 2

0 commit comments

Comments
 (0)