From 295685c1fe8b1eac7df32698a69dc45955bd8a4d Mon Sep 17 00:00:00 2001 From: Igor Sirotin Date: Wed, 24 Apr 2024 16:41:42 +0200 Subject: [PATCH] fix_: skip tests using infura (#5086) --- rpc/verif_proxy_test.go | 1 + services/ens/api_test.go | 9 +++++++++ services/web3provider/api_test.go | 1 + 3 files changed, 11 insertions(+) diff --git a/rpc/verif_proxy_test.go b/rpc/verif_proxy_test.go index 28d31bc41..5453cf8bc 100644 --- a/rpc/verif_proxy_test.go +++ b/rpc/verif_proxy_test.go @@ -55,6 +55,7 @@ func (s *ProxySuite) startRpcClient(infuraURL string) *Client { } func (s *ProxySuite) TestRun() { + s.T().Skip("skip test using infura") infuraURL := "https://mainnet.infura.io/v3/800c641949d64d768a5070a1b0511938" client := s.startRpcClient(infuraURL) diff --git a/services/ens/api_test.go b/services/ens/api_test.go index ebdda95be..1dd9768be 100644 --- a/services/ens/api_test.go +++ b/services/ens/api_test.go @@ -51,6 +51,7 @@ func setupTestAPI(t *testing.T) (*API, func()) { } func TestResolver(t *testing.T) { + t.Skip("skip test using infura") api, cancel := setupTestAPI(t) defer cancel() @@ -60,6 +61,7 @@ func TestResolver(t *testing.T) { } func TestGetName(t *testing.T) { + t.Skip("skip test using infura") api, cancel := setupTestAPI(t) defer cancel() @@ -69,6 +71,7 @@ func TestGetName(t *testing.T) { } func TestOwnerOf(t *testing.T) { + t.Skip("skip test using infura") api, cancel := setupTestAPI(t) defer cancel() @@ -78,6 +81,7 @@ func TestOwnerOf(t *testing.T) { } func TestContentHash(t *testing.T) { + t.Skip("skip test using infura") api, cancel := setupTestAPI(t) defer cancel() @@ -87,6 +91,7 @@ func TestContentHash(t *testing.T) { } func TestPublicKeyOf(t *testing.T) { + t.Skip("skip test using infura") api, cancel := setupTestAPI(t) defer cancel() @@ -100,6 +105,7 @@ func TestPublicKeyOf(t *testing.T) { } func TestAddressOf(t *testing.T) { + t.Skip("skip test using infura") api, cancel := setupTestAPI(t) defer cancel() @@ -109,6 +115,7 @@ func TestAddressOf(t *testing.T) { } func TestExpireAt(t *testing.T) { + t.Skip("skip test using infura") api, cancel := setupTestAPI(t) defer cancel() @@ -118,6 +125,7 @@ func TestExpireAt(t *testing.T) { } func TestPrice(t *testing.T) { + t.Skip("skip test using infura") api, cancel := setupTestAPI(t) defer cancel() @@ -127,6 +135,7 @@ func TestPrice(t *testing.T) { } func TestResourceURL(t *testing.T) { + t.Skip("skip test using infura") api, cancel := setupTestAPI(t) defer cancel() diff --git a/services/web3provider/api_test.go b/services/web3provider/api_test.go index 3e493fa46..d122a9dad 100644 --- a/services/web3provider/api_test.go +++ b/services/web3provider/api_test.go @@ -30,6 +30,7 @@ func createDB(t *testing.T) (*sql.DB, func()) { } func setupTestAPI(t *testing.T) (*API, func()) { + t.Skip("skip test using infura") db, cancel := createDB(t) keyStoreDir := t.TempDir()