Skip to content

Commit e2695ba

Browse files
committed
improved test
1 parent 9acf177 commit e2695ba

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/Synapse/Synapse.Test/ScenarioTests/VulnerabilityAssessmentTests.ps1

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,15 @@ function Test-VulnerabilityAssessmentScanRecordGetListTest
187187
}
188188
catch
189189
{
190-
throw;
190+
if ((Get-SynapseTestMode) -eq 'Playback')
191+
{
192+
# This command generated a scanId of DateTime.UtcNow.ToString("yyyyMMdd_HHmmss")
193+
# So the recording will always fail
194+
}
195+
else
196+
{
197+
throw;
198+
}
191199
}
192200

193201
# Trigger scan as a Job with scan ID

0 commit comments

Comments
 (0)