Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Longer timeout for install part of e2e test #157

Merged
merged 1 commit into from
Aug 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 11 additions & 5 deletions e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ import (
)

const (
startTimeout = 5 * time.Second
testTimeout = 15 * time.Second
installTimeout = 30 * time.Second
startTimeout = 5 * time.Second
testTimeout = 15 * time.Second
)

func TestEndToEndTrustlessGatewayDomains(t *testing.T) {
Expand All @@ -23,18 +24,23 @@ func TestEndToEndTrustlessGatewayDomains(t *testing.T) {
t.Skip("skipping test on", runtime.GOOS)
}

ctx, cancel := context.WithTimeout(context.Background(), testTimeout)
defer cancel()

runner := testcmd.NewRunner(t, t.TempDir())

ctx, cancel := context.WithTimeout(context.Background(), installTimeout)
defer cancel()

// install rainbow
runner.Run(ctx, "go", "install", ".")
cancel()
rainbow := filepath.Join(runner.Dir, "rainbow")

args := testcmd.Args(rainbow, "--trustless-gateway-domains", "example.org")
ready := testcmd.NewStdoutWatcher("IPFS Gateway listening")
domain := testcmd.NewStdoutWatcher("RAINBOW_TRUSTLESS_GATEWAY_DOMAINS = example.org")

ctx, cancel = context.WithTimeout(context.Background(), testTimeout)
defer cancel()

cmdRainbow := runner.Start(ctx, args, ready, domain)

startCtx, startCancel := context.WithTimeout(context.Background(), startTimeout)
Expand Down
Loading