mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-15 20:38:00 +00:00
25 lines
305 B
Go
25 lines
305 B
Go
|
//go:build integration
|
||
|
|
||
|
package system_test
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
"os"
|
||
|
"testing"
|
||
|
"time"
|
||
|
)
|
||
|
|
||
|
var (
|
||
|
CTX context.Context
|
||
|
)
|
||
|
|
||
|
func TestMain(m *testing.M) {
|
||
|
os.Exit(func() int {
|
||
|
ctx, cancel := context.WithTimeout(context.Background(), 15*time.Minute)
|
||
|
defer cancel()
|
||
|
|
||
|
CTX = ctx
|
||
|
return m.Run()
|
||
|
}())
|
||
|
}
|