chore: fix windows postgres tests (#15593)

Patches tests that caused Windows Postgres CI in
https://github.com/coder/coder/pull/15520 to consistently fail.

I tested this by temporarily adding Postgres Windows CI to this PR.
However, I reverted those changes to merge them with
https://github.com/coder/coder/pull/15520. For reference, here's [a
passing CI
run](https://github.com/coder/coder/actions/runs/11918816662/job/33219786238)
from an earlier commit.

**Note:** Although Windows tests now pass, they remain quite flaky. I
recommend running Postgres Windows CI to gather data on these flakes,
but I don’t think it should be a required job just yet.
This commit is contained in:
Hugo Dutka
2024-11-20 13:30:31 +01:00
committed by GitHub
parent 97ce44a77d
commit 6ed76921dd
5 changed files with 40 additions and 4 deletions

View File

@ -6,6 +6,7 @@ import (
"encoding/json"
"fmt"
"net/http"
"runtime"
"sync"
"testing"
"time"
@ -565,6 +566,10 @@ func TestWorkspaceSerialization(t *testing.T) {
})
t.Run("ActivityBump", func(t *testing.T) {
if runtime.GOOS == "windows" {
t.Skip("Even though this test is expected to 'likely always fail', it doesn't fail on Windows")
}
t.Log("Expected to fail. As long as quota & deadline are on the same " +
" table and affect the same row, this will likely always fail.")
// +---------------------+----------------------------------+