less sleep for integration tests and make it posible to run single integration tests

This commit is contained in:
6543 2022-06-14 19:12:32 +02:00
parent af3a6271d6
commit 6b0813abe0
No known key found for this signature in database
GPG key ID: C99B82E40B027BAE
2 changed files with 4 additions and 1 deletions

View file

@ -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/...

View file

@ -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())
}