aboutsummaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorYulian Kuncheff <670212+daegalus@users.noreply.github.com>2025-03-25 15:02:05 +0100
committerGitHub <noreply@github.com>2025-03-25 10:02:05 -0400
commitf29a200f09ca3f720266164421304ed28de57dc6 (patch)
tree3b6008abb87b6f7c1476d2a56a0834602bede960 /internal
parent18cd8a66a254989c7cb0c90ea58df43b1883289f (diff)
downloadanubis-f29a200f09ca3f720266164421304ed28de57dc6.tar.xz
anubis-f29a200f09ca3f720266164421304ed28de57dc6.zip
Linting and staticcheck fixes. (#101)
* Fix linting and staticcheck issues * Add changelog update * Remove SetNext
Diffstat (limited to 'internal')
-rw-r--r--internal/test/playwright_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/test/playwright_test.go b/internal/test/playwright_test.go
index b8b6cac..e41a10a 100644
--- a/internal/test/playwright_test.go
+++ b/internal/test/playwright_test.go
@@ -153,7 +153,7 @@ func startPlaywright(t *testing.T) {
daemonize(t, fmt.Sprintf("npx --yes playwright@%s run-server --port %d", playwrightVersion, *playwrightPort))
- for true {
+ for {
if _, err := http.Get(fmt.Sprintf("http://localhost:%d", *playwrightPort)); err != nil {
time.Sleep(500 * time.Millisecond)
continue
@@ -355,7 +355,7 @@ func pwTimeout(tc testCase, deadline time.Time) *float64 {
max = *playwrightMaxHardTime
}
- d := deadline.Sub(time.Now())
+ d := time.Until(deadline)
if d <= 0 || d > max {
return playwright.Float(float64(max.Milliseconds()))
}