mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-10 12:46:46 +00:00
Other(CI): Increase integration tests timeout
This commit is contained in:
8
Makefile
8
Makefile
@ -218,16 +218,16 @@ change-copyright-year:
|
|||||||
./utils/missing_license.sh change-year
|
./utils/missing_license.sh change-year
|
||||||
|
|
||||||
test: gofiles
|
test: gofiles
|
||||||
go test -v -p=1 -count=1 -coverprofile=/tmp/coverage.out -run=${TESTRUN} ./internal/... ./pkg/...
|
go test -v -timeout=5m -p=1 -count=1 -coverprofile=/tmp/coverage.out -run=${TESTRUN} ./internal/... ./pkg/...
|
||||||
|
|
||||||
test-race: gofiles
|
test-race: gofiles
|
||||||
go test -v -p=1 -count=1 -race -failfast -run=${TESTRUN} ./internal/... ./pkg/...
|
go test -v -timeout=30m -p=1 -count=1 -race -failfast -run=${TESTRUN} ./internal/... ./pkg/...
|
||||||
|
|
||||||
test-integration: gofiles
|
test-integration: gofiles
|
||||||
go test -v -p=1 -count=1 github.com/ProtonMail/proton-bridge/v2/tests
|
go test -v -timeout=10m -p=1 -count=1 github.com/ProtonMail/proton-bridge/v2/tests
|
||||||
|
|
||||||
test-integration-race: gofiles
|
test-integration-race: gofiles
|
||||||
go test -v -p=1 -count=1 -race -failfast github.com/ProtonMail/proton-bridge/v2/tests
|
go test -v -timeout=60m -p=1 -count=1 -race -failfast github.com/ProtonMail/proton-bridge/v2/tests
|
||||||
|
|
||||||
bench:
|
bench:
|
||||||
go test -run '^$$' -bench=. -memprofile bench_mem.pprof -cpuprofile bench_cpu.pprof ./internal/store
|
go test -run '^$$' -bench=. -memprofile bench_mem.pprof -cpuprofile bench_cpu.pprof ./internal/store
|
||||||
|
|||||||
@ -29,7 +29,6 @@ import (
|
|||||||
"github.com/cucumber/godog"
|
"github.com/cucumber/godog"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
"gitlab.protontech.ch/go/liteapi/server/backend"
|
"gitlab.protontech.ch/go/liteapi/server/backend"
|
||||||
"go.uber.org/goleak"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
@ -58,10 +57,6 @@ func (s *scenario) close(tb testing.TB) {
|
|||||||
require.NoError(tb, s.t.close(context.Background()))
|
require.NoError(tb, s.t.close(context.Background()))
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestMain(m *testing.M) {
|
|
||||||
goleak.VerifyTestMain(m, goleak.IgnoreCurrent())
|
|
||||||
}
|
|
||||||
|
|
||||||
func TestFeatures(testingT *testing.T) {
|
func TestFeatures(testingT *testing.T) {
|
||||||
suite := godog.TestSuite{
|
suite := godog.TestSuite{
|
||||||
ScenarioInitializer: func(ctx *godog.ScenarioContext) {
|
ScenarioInitializer: func(ctx *godog.ScenarioContext) {
|
||||||
|
|||||||
11
tests/main_test.go
Normal file
11
tests/main_test.go
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
package tests
|
||||||
|
|
||||||
|
import (
|
||||||
|
"testing"
|
||||||
|
|
||||||
|
"go.uber.org/goleak"
|
||||||
|
)
|
||||||
|
|
||||||
|
func TestMain(m *testing.M) {
|
||||||
|
goleak.VerifyTestMain(m, goleak.IgnoreCurrent())
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user