diff --git a/Justfile b/Justfile index 720c0f1..665984c 100644 --- a/Justfile +++ b/Justfile @@ -33,3 +33,6 @@ test: integration: go test -race -tags integration codeberg.org/codeberg/pages/integration/... + +integration-run TEST: + go test -race -tags integration -run "^{{TEST}}$" codeberg.org/codeberg/pages/integration/... \ No newline at end of file diff --git a/integration/main_test.go b/integration/main_test.go index 8104413..c8f524f 100644 --- a/integration/main_test.go +++ b/integration/main_test.go @@ -26,7 +26,7 @@ func TestMain(m *testing.M) { log.Printf("=== TestMain: Server STOPED ===\n") }() - time.Sleep(20 * time.Second) + time.Sleep(10 * time.Second) os.Exit(m.Run()) }