Skip to content

Commit af7d9c3

Browse files
Remove testing short-mode skips in server startup functions
Eliminates checks for short-mode testing that skipped tests in server startup functions. This ensures all tests run regardless of the testing mode, improving test coverage and consistency.
1 parent 03a8bec commit af7d9c3

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

server/e2e/common.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,6 @@ func StartServerAndRepos(t *testing.T, cfg *config.Config, useMongo bool, seeder
6969
func StartServerWithRepos(t *testing.T, cfg *config.Config, repos *repo.Container, gateways *gateway.Container) *httpexpect.Expect {
7070
t.Helper()
7171

72-
if testing.Short() {
73-
t.Skip("skipping test in short mode.")
74-
}
75-
7672
ctx := context.Background()
7773

7874
l, err := net.Listen("tcp", ":0")
@@ -143,10 +139,6 @@ func StartGQLServerRepos(t *testing.T, seeder Seeder) (*httpexpect.Expect, conte
143139
func StartGQLServerWithRepos(t *testing.T, ctx context.Context, cfg *config.Config, repos *repo.Container, accountrepos *accountrepo.Container) *httpexpect.Expect {
144140
t.Helper()
145141

146-
if testing.Short() {
147-
t.SkipNow()
148-
}
149-
150142
l, err := net.Listen("tcp", ":0")
151143
if err != nil {
152144
t.Fatalf("server failed to listen: %v", err)

0 commit comments

Comments
 (0)