Skip to content

Commit 997f0e1

Browse files
committed
Fix e2e test
1 parent ee5b7d1 commit 997f0e1

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/windos-fix.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,12 @@ jobs:
3737

3838
- name: Verify the action took less than 1 minute
3939
run: |
40-
$timestamp = Get-Content -Path "timestamp.txt"
40+
$timestampContent = Get-Content -Path "timestamp.txt"
41+
$timestamp = [DateTime]::Parse($timestampContent)
4142
$now = Get-Date
42-
$diff = $now - $timestamp
43-
if ($diff.TotalMinutes -gt 1) {
43+
44+
$diff = New-TimeSpan -Start $timestamp -End $now
45+
if ($diff.Minutes -gt 1) {
4446
throw "The action took longer than 1 minute to run"
4547
}
4648

0 commit comments

Comments
 (0)