Skip to content

Commit 61d152f

Browse files
committed
Added WithTimeout to tests
1 parent 7bf30bc commit 61d152f

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

ton/integration_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ var api = func() APIClientWrapped {
4848
panic(err)
4949
}
5050

51-
a := NewAPIClient(client, ProofCheckPolicySecure).WithRetry()
51+
a := NewAPIClient(client, ProofCheckPolicySecure).WithTimeout(5 * time.Second).WithRetry()
5252
// a.SetTrustedBlockFromConfig(cfg)
5353
return a
5454
}()

ton/jetton/integration_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ var api = func() ton.APIClientWrapped {
2626
panic(err)
2727
}
2828

29-
return ton.NewAPIClient(client).WithRetry()
29+
return ton.NewAPIClient(client).WithTimeout(5 * time.Second).WithRetry()
3030
}()
3131

3232
func TestJettonMasterClient_GetJettonData(t *testing.T) {

ton/nft/integration_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ var api = func() ton.APIClientWrapped {
3030
panic(err)
3131
}
3232

33-
return ton.NewAPIClient(client).WithRetry()
33+
return ton.NewAPIClient(client).WithTimeout(5 * time.Second).WithRetry()
3434
}()
3535

3636
var _seed = os.Getenv("WALLET_SEED")

ton/payments/integration_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ var api = func() ton.APIClientWrapped {
2828
panic(err)
2929
}
3030

31-
return ton.NewAPIClient(client).WithRetry()
31+
return ton.NewAPIClient(client).WithTimeout(5 * time.Second).WithRetry()
3232
}()
3333

3434
var _seed = strings.Split(os.Getenv("WALLET_SEED"), " ")

ton/wallet/integration_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ var api = func() ton.APIClientWrapped {
3434
panic(err)
3535
}
3636

37-
return ton.NewAPIClient(client).WithRetry()
37+
return ton.NewAPIClient(client).WithTimeout(5 * time.Second).WithRetry()
3838
}()
3939

4040
var apiMain = func() ton.APIClientWrapped {
@@ -48,7 +48,7 @@ var apiMain = func() ton.APIClientWrapped {
4848
panic(err)
4949
}
5050

51-
return ton.NewAPIClient(client).WithRetry()
51+
return ton.NewAPIClient(client).WithTimeout(5 * time.Second).WithRetry()
5252
}()
5353

5454
var _seed = os.Getenv("WALLET_SEED")

0 commit comments

Comments
 (0)