From 6b0813abe0afd911637107bfe77a6cdfe5fd2728 Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Tue, 14 Jun 2022 19:12:32 +0200 Subject: [PATCH] less sleep for integration tests and make it posible to run single integration tests --- Justfile | 3 +++ integration/main_test.go | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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()) }