Skip to content

Commit f0f6579

Browse files
Remove unnecessary sleep in tests
1 parent 3550d8f commit f0f6579

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

internal/tiger/cmd/auth_test.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import (
1515
"regexp"
1616
"strings"
1717
"testing"
18-
"time"
1918

2019
"github.com/timescale/tiger-cli/internal/tiger/config"
2120
)
@@ -410,10 +409,6 @@ func mockOpenBrowser(t *testing.T) func(string) error {
410409

411410
// Give the OAuth server a moment to start
412411
go func() {
413-
// Sleep to ensure the OAuth callback server is listening
414-
// This prevents "EOF" errors in CI when the server hasn't started yet
415-
time.Sleep(100 * time.Millisecond)
416-
417412
// Make the OAuth callback request directly
418413
callbackURL := fmt.Sprintf("%s?code=test-auth-code&state=%s", redirectURI, state)
419414
t.Logf("Mock browser making callback request to: %s", callbackURL)

0 commit comments

Comments
 (0)