Skip to content

Commit

Permalink
Changed config url for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
xssnick committed Apr 20, 2024
1 parent 4ad0a86 commit 35c1439
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 17 deletions.
6 changes: 3 additions & 3 deletions adnl/dht/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ func TestClient_FindAddressesIntegration(t *testing.T) {
ctx, cancel := context.WithTimeout(context.Background(), 20*time.Second)
defer cancel()

dhtClient, err := NewClientFromConfigUrl(ctx, gateway, "https://ton.org/global.config.json")
dhtClient, err := NewClientFromConfigUrl(ctx, gateway, "https://tonutils.com/global.config.json")
if err != nil {
t.Fatalf("failed to init DHT client: %s", err.Error())
}
Expand Down Expand Up @@ -724,7 +724,7 @@ func TestClient_Close(t *testing.T) {
// ctx, cancel := context.WithTimeout(context.Background(), 40*time.Second)
// defer cancel()
//
// dhtClient, err := NewClientFromConfigUrl(ctx, gateway, "https://ton.org/global.config.json")
// dhtClient, err := NewClientFromConfigUrl(ctx, gateway, "https://tonutils.com/global.config.json")
// if err != nil {
// t.Fatalf("failed to init DHT client: %s", err.Error())
// }
Expand Down Expand Up @@ -775,7 +775,7 @@ func TestClient_StoreAddressIntegration(t *testing.T) {
ctx, cancel := context.WithTimeout(context.Background(), 90*time.Second)
defer cancel()

dhtClient, err := NewClientFromConfigUrl(ctx, gateway, "https://ton.org/global.config.json")
dhtClient, err := NewClientFromConfigUrl(ctx, gateway, "https://tonutils.com/global.config.json")
if err != nil {
t.Fatalf("failed to init DHT client: %s", err.Error())
}
Expand Down
4 changes: 2 additions & 2 deletions adnl/rldp/http/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ func TestTransport_RoundTripIntegration(t *testing.T) {
t.Fatal(err)
}

dhtClient, err := dht.NewClientFromConfigUrl(context.Background(), gateway, "https://ton.org/global.config.json")
dhtClient, err := dht.NewClientFromConfigUrl(context.Background(), gateway, "https://tonutils.com/global.config.json")
if err != nil {
t.Fatal(err)
}
Expand All @@ -438,7 +438,7 @@ func getDNSResolver() *dns.Client {
client := liteclient.NewConnectionPool()

// connect to testnet lite server
err := client.AddConnectionsFromConfigUrl(context.Background(), "https://ton.org/global.config.json")
err := client.AddConnectionsFromConfigUrl(context.Background(), "https://tonutils.com/global.config.json")
if err != nil {
panic(err)
}
Expand Down
6 changes: 3 additions & 3 deletions liteclient/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func Test_Conn(t *testing.T) {
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
defer cancel()

err := client.AddConnectionsFromConfigUrl(ctx, "https://ton.org/global.config.json")
err := client.AddConnectionsFromConfigUrl(ctx, "https://tonutils.com/global.config.json")
if err != nil {
t.Fatal("add connections err", err)
}
Expand Down Expand Up @@ -76,7 +76,7 @@ func Test_ConnSticky(t *testing.T) {
defer cancel()
ctx = client.StickyContext(ctx)

err := client.AddConnectionsFromConfigUrl(ctx, "https://ton.org/global.config.json")
err := client.AddConnectionsFromConfigUrl(ctx, "https://tonutils.com/global.config.json")
if err != nil {
t.Fatal("add connections err", err)
}
Expand Down Expand Up @@ -110,7 +110,7 @@ func Test_ConnSticky(t *testing.T) {
func Test_ServerProxy(t *testing.T) {
client := NewConnectionPool()

err := client.AddConnectionsFromConfigUrl(context.Background(), "https://ton.org/global.config.json")
err := client.AddConnectionsFromConfigUrl(context.Background(), "https://tonutils.com/global.config.json")
if err != nil {
t.Fatal("add connections err", err)
}
Expand Down
2 changes: 1 addition & 1 deletion ton/dns/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ var api = func() ton.APIClientWrapped {
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
defer cancel()

err := client.AddConnectionsFromConfigUrl(ctx, "https://ton.org/global.config.json")
err := client.AddConnectionsFromConfigUrl(ctx, "https://tonutils.com/global.config.json")
if err != nil {
panic(err)
}
Expand Down
6 changes: 3 additions & 3 deletions ton/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ var apiTestNet = func() APIClientWrapped {
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
defer cancel()

err := client.AddConnectionsFromConfigUrl(ctx, "https://ton-blockchain.github.io/testnet-global.config.json")
err := client.AddConnectionsFromConfigUrl(ctx, "https://tonutils.com/testnet-global.config.json")
if err != nil {
panic(err)
}
Expand All @@ -37,7 +37,7 @@ var api = func() APIClientWrapped {
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
defer cancel()

cfg, err := liteclient.GetConfigFromUrl(ctx, "https://ton.org/global.config.json")
cfg, err := liteclient.GetConfigFromUrl(ctx, "https://tonutils.com/global.config.json")
if err != nil {
panic(err)
}
Expand Down Expand Up @@ -621,7 +621,7 @@ func TestAccountStorage_LoadFromCell_ExtraCurrencies(t *testing.T) {
}

func TestAPIClient_GetBlockProofForward(t *testing.T) {
cfg, err := liteclient.GetConfigFromUrl(context.Background(), "https://ton.org/global.config.json")
cfg, err := liteclient.GetConfigFromUrl(context.Background(), "https://tonutils.com/global.config.json")
if err != nil {
t.Fatal("get cfg err:", err.Error())
return
Expand Down
2 changes: 1 addition & 1 deletion ton/jetton/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ var api = func() ton.APIClientWrapped {
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
defer cancel()

err := client.AddConnectionsFromConfigUrl(ctx, "https://ton-blockchain.github.io/testnet-global.config.json")
err := client.AddConnectionsFromConfigUrl(ctx, "https://tonutils.com/testnet-global.config.json")
if err != nil {
panic(err)
}
Expand Down
2 changes: 1 addition & 1 deletion ton/nft/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ var api = func() ton.APIClientWrapped {
ctx, cancel := context.WithTimeout(context.Background(), 3*time.Second)
defer cancel()

err := client.AddConnectionsFromConfigUrl(ctx, "https://ton-blockchain.github.io/testnet-global.config.json")
err := client.AddConnectionsFromConfigUrl(ctx, "https://tonutils.com/testnet-global.config.json")
if err != nil {
panic(err)
}
Expand Down
2 changes: 1 addition & 1 deletion ton/payments/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ var api = func() ton.APIClientWrapped {
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
defer cancel()

err := client.AddConnectionsFromConfigUrl(ctx, "https://ton-blockchain.github.io/testnet-global.config.json")
err := client.AddConnectionsFromConfigUrl(ctx, "https://tonutils.com/testnet-global.config.json")
if err != nil {
panic(err)
}
Expand Down
4 changes: 2 additions & 2 deletions ton/wallet/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ var api = func() ton.APIClientWrapped {
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
defer cancel()

err := client.AddConnectionsFromConfigUrl(ctx, "https://ton-blockchain.github.io/testnet-global.config.json")
err := client.AddConnectionsFromConfigUrl(ctx, "https://tonutils.com/testnet-global.config.json")
if err != nil {
panic(err)
}
Expand All @@ -41,7 +41,7 @@ var apiMain = func() ton.APIClientWrapped {
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
defer cancel()

err := client.AddConnectionsFromConfigUrl(ctx, "https://ton.org/global.config.json")
err := client.AddConnectionsFromConfigUrl(ctx, "https://tonutils.com/global.config.json")
if err != nil {
panic(err)
}
Expand Down

0 comments on commit 35c1439

Please sign in to comment.