From 997f0e197be996942fe47dcdf195de2f64936522 Mon Sep 17 00:00:00 2001 From: dsame Date: Thu, 9 Nov 2023 12:23:02 +0100 Subject: [PATCH] Fix e2e test --- .github/workflows/windos-fix.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/windos-fix.yml b/.github/workflows/windos-fix.yml index 9645e50c23..c2413fbb3e 100644 --- a/.github/workflows/windos-fix.yml +++ b/.github/workflows/windos-fix.yml @@ -37,10 +37,12 @@ jobs: - name: Verify the action took less than 1 minute run: | - $timestamp = Get-Content -Path "timestamp.txt" + $timestampContent = Get-Content -Path "timestamp.txt" + $timestamp = [DateTime]::Parse($timestampContent) $now = Get-Date - $diff = $now - $timestamp - if ($diff.TotalMinutes -gt 1) { + + $diff = New-TimeSpan -Start $timestamp -End $now + if ($diff.Minutes -gt 1) { throw "The action took longer than 1 minute to run" }