@@ -13,8 +13,9 @@ import (
13
13
)
14
14
15
15
const (
16
- startTimeout = 5 * time .Second
17
- testTimeout = 15 * time .Second
16
+ installTimeout = 30 * time .Second
17
+ startTimeout = 5 * time .Second
18
+ testTimeout = 15 * time .Second
18
19
)
19
20
20
21
func TestEndToEndTrustlessGatewayDomains (t * testing.T ) {
@@ -23,18 +24,23 @@ func TestEndToEndTrustlessGatewayDomains(t *testing.T) {
23
24
t .Skip ("skipping test on" , runtime .GOOS )
24
25
}
25
26
26
- ctx , cancel := context .WithTimeout (context .Background (), testTimeout )
27
- defer cancel ()
28
-
29
27
runner := testcmd .NewRunner (t , t .TempDir ())
30
28
29
+ ctx , cancel := context .WithTimeout (context .Background (), installTimeout )
30
+ defer cancel ()
31
+
31
32
// install rainbow
32
33
runner .Run (ctx , "go" , "install" , "." )
34
+ cancel ()
33
35
rainbow := filepath .Join (runner .Dir , "rainbow" )
34
36
35
37
args := testcmd .Args (rainbow , "--trustless-gateway-domains" , "example.org" )
36
38
ready := testcmd .NewStdoutWatcher ("IPFS Gateway listening" )
37
39
domain := testcmd .NewStdoutWatcher ("RAINBOW_TRUSTLESS_GATEWAY_DOMAINS = example.org" )
40
+
41
+ ctx , cancel = context .WithTimeout (context .Background (), testTimeout )
42
+ defer cancel ()
43
+
38
44
cmdRainbow := runner .Start (ctx , args , ready , domain )
39
45
40
46
startCtx , startCancel := context .WithTimeout (context .Background (), startTimeout )
0 commit comments