fix(coderd): use WaitSuperLong in TestReinitializeAgent (#22593)

Fixes coder/internal#642

We recently fixed Windows specific flakes for this test and reenabled
it. It then failed intermittently due to context deadline expiration.
The temporary path created on Windows contained invalid characters. This
resulted in a silent startup script failure on Windows. The test then
fruitlessly waited until context expiration. The test now uses a valid
path on Windows.
This commit is contained in:
Sas Swart
2026-03-04 15:22:43 +02:00
committed by GitHub
parent 012a0497ce
commit 8c09df52f9
2 changed files with 19 additions and 8 deletions
+3
View File
@@ -18,4 +18,7 @@ var GoleakOptions []goleak.Option = []goleak.Option{
goleak.IgnoreTopFunction("gopkg.in/natefinch/lumberjack%2ev2.(*Logger).mill.func1"),
// The pq library appears to leave around a goroutine after Close().
goleak.IgnoreTopFunction("github.com/lib/pq.NewDialListener"),
// The go-winio library starts a process-level I/O completion port
// goroutine via sync.Once that is never terminated.
goleak.IgnoreAnyFunction("github.com/Microsoft/go-winio.ioCompletionProcessor"),
}