fix_: skip tests using infura (#5086)

This commit is contained in:
Igor Sirotin 2024-04-24 16:41:42 +02:00 committed by GitHub
parent faf823f62f
commit 295685c1fe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 11 additions and 0 deletions

View File

@ -55,6 +55,7 @@ func (s *ProxySuite) startRpcClient(infuraURL string) *Client {
} }
func (s *ProxySuite) TestRun() { func (s *ProxySuite) TestRun() {
s.T().Skip("skip test using infura")
infuraURL := "https://mainnet.infura.io/v3/800c641949d64d768a5070a1b0511938" infuraURL := "https://mainnet.infura.io/v3/800c641949d64d768a5070a1b0511938"
client := s.startRpcClient(infuraURL) client := s.startRpcClient(infuraURL)

View File

@ -51,6 +51,7 @@ func setupTestAPI(t *testing.T) (*API, func()) {
} }
func TestResolver(t *testing.T) { func TestResolver(t *testing.T) {
t.Skip("skip test using infura")
api, cancel := setupTestAPI(t) api, cancel := setupTestAPI(t)
defer cancel() defer cancel()
@ -60,6 +61,7 @@ func TestResolver(t *testing.T) {
} }
func TestGetName(t *testing.T) { func TestGetName(t *testing.T) {
t.Skip("skip test using infura")
api, cancel := setupTestAPI(t) api, cancel := setupTestAPI(t)
defer cancel() defer cancel()
@ -69,6 +71,7 @@ func TestGetName(t *testing.T) {
} }
func TestOwnerOf(t *testing.T) { func TestOwnerOf(t *testing.T) {
t.Skip("skip test using infura")
api, cancel := setupTestAPI(t) api, cancel := setupTestAPI(t)
defer cancel() defer cancel()
@ -78,6 +81,7 @@ func TestOwnerOf(t *testing.T) {
} }
func TestContentHash(t *testing.T) { func TestContentHash(t *testing.T) {
t.Skip("skip test using infura")
api, cancel := setupTestAPI(t) api, cancel := setupTestAPI(t)
defer cancel() defer cancel()
@ -87,6 +91,7 @@ func TestContentHash(t *testing.T) {
} }
func TestPublicKeyOf(t *testing.T) { func TestPublicKeyOf(t *testing.T) {
t.Skip("skip test using infura")
api, cancel := setupTestAPI(t) api, cancel := setupTestAPI(t)
defer cancel() defer cancel()
@ -100,6 +105,7 @@ func TestPublicKeyOf(t *testing.T) {
} }
func TestAddressOf(t *testing.T) { func TestAddressOf(t *testing.T) {
t.Skip("skip test using infura")
api, cancel := setupTestAPI(t) api, cancel := setupTestAPI(t)
defer cancel() defer cancel()
@ -109,6 +115,7 @@ func TestAddressOf(t *testing.T) {
} }
func TestExpireAt(t *testing.T) { func TestExpireAt(t *testing.T) {
t.Skip("skip test using infura")
api, cancel := setupTestAPI(t) api, cancel := setupTestAPI(t)
defer cancel() defer cancel()
@ -118,6 +125,7 @@ func TestExpireAt(t *testing.T) {
} }
func TestPrice(t *testing.T) { func TestPrice(t *testing.T) {
t.Skip("skip test using infura")
api, cancel := setupTestAPI(t) api, cancel := setupTestAPI(t)
defer cancel() defer cancel()
@ -127,6 +135,7 @@ func TestPrice(t *testing.T) {
} }
func TestResourceURL(t *testing.T) { func TestResourceURL(t *testing.T) {
t.Skip("skip test using infura")
api, cancel := setupTestAPI(t) api, cancel := setupTestAPI(t)
defer cancel() defer cancel()

View File

@ -30,6 +30,7 @@ func createDB(t *testing.T) (*sql.DB, func()) {
} }
func setupTestAPI(t *testing.T) (*API, func()) { func setupTestAPI(t *testing.T) (*API, func()) {
t.Skip("skip test using infura")
db, cancel := createDB(t) db, cancel := createDB(t)
keyStoreDir := t.TempDir() keyStoreDir := t.TempDir()