File tree Expand file tree Collapse file tree
packages/api/internal/handlers Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ package handlers
33import (
44 "time"
55
6- typesteam "github.com/e2b-dev/infra/packages/api/internal/db /types"
6+ typesteam "github.com/e2b-dev/infra/packages/auth/pkg /types"
77 dbtypes "github.com/e2b-dev/infra/packages/db/pkg/types"
88)
99
Original file line number Diff line number Diff line change 66
77 "github.com/stretchr/testify/require"
88
9- typesteam "github.com/e2b-dev/infra/packages/api/internal/db /types"
9+ typesteam "github.com/e2b-dev/infra/packages/auth/pkg /types"
1010 dbtypes "github.com/e2b-dev/infra/packages/db/pkg/types"
1111)
1212
@@ -21,6 +21,7 @@ func testTeamWithMaxLengthHours(hours int64) *typesteam.Team {
2121// TestCalculateTimeout verifies create-time timeout handling:
2222// no timeout -> do not persist, short timeout -> min floor, long timeout -> team cap.
2323func TestCalculateTimeout (t * testing.T ) {
24+ t .Parallel ()
2425 team := testTeamWithMaxLengthHours (1 )
2526
2627 // Create without explicit timeout should not persist any starting timeout.
@@ -42,6 +43,7 @@ func TestCalculateTimeout(t *testing.T) {
4243// TestCalculateAutoResumeTimeout verifies resume-time timeout handling:
4344// default fallback, persisted timeout minimum floor, and team cap.
4445func TestCalculateAutoResumeTimeout (t * testing.T ) {
46+ t .Parallel ()
4547 team := testTeamWithMaxLengthHours (1 )
4648
4749 // Older snapshots without persisted value should use the proxy fallback timeout.
You can’t perform that action at this time.
0 commit comments