File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 2727 ${{ runner.os }}-go-
2828 - name : go test
2929 run : go test -p 1 ./...
30+ env :
31+ ETH_RPC_URL : ${{ secrets.ETH_RPC_URL }}
Original file line number Diff line number Diff line change @@ -13,6 +13,10 @@ import (
1313)
1414
1515func TestIntegrations (t * testing.T ) {
16+ rpcURL := os .Getenv ("ETH_RPC_URL" )
17+ if rpcURL == "" {
18+ t .Skip ("ETH_RPC_URL not set" )
19+ }
1620 cases := []struct {
1721 blockNum uint64
1822 config string
@@ -117,7 +121,7 @@ func TestIntegrations(t *testing.T) {
117121 for _ , ig := range conf .Integrations {
118122 task , err := NewTask (
119123 WithPG (pg ),
120- WithSource (jrpc2 .New ("https://practical-flashy-research.quiknode.pro/caae41d41b732f1f0872c8fa3ca2fe66ebb76a93/" )),
124+ WithSource (jrpc2 .New (rpcURL )),
121125 WithIntegration (ig ),
122126 WithRange (c .blockNum , c .blockNum + 1 ),
123127 )
@@ -128,7 +132,7 @@ func TestIntegrations(t *testing.T) {
128132 for _ , ig := range conf .Integrations {
129133 task , err := NewTask (
130134 WithPG (pg ),
131- WithSource (jrpc2 .New ("https://practical-flashy-research.quiknode.pro/caae41d41b732f1f0872c8fa3ca2fe66ebb76a93/" )),
135+ WithSource (jrpc2 .New (rpcURL )),
132136 WithIntegration (ig ),
133137 )
134138 tc .NoErr (t , err )
You can’t perform that action at this time.
0 commit comments