mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2025-04-24 13:56:57 +00:00
less sleep for integration tests and make it posible to run single integration tests
This commit is contained in:
parent
af3a6271d6
commit
6b0813abe0
2 changed files with 4 additions and 1 deletions
3
Justfile
3
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/...
|
|
@ -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())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue