@@ -40,6 +40,9 @@ func TestNewClient_WithMaxConnectionsNumber(t *testing.T) {
4040}
4141
4242func TestAsyncInitialization (t * testing.T ) {
43+ if os .Getenv ("TEST_CI" ) == "1" {
44+ t .SkipNow ()
45+ }
4346 accountId := ton .MustParseAccountID ("EQAs87W4yJHlF8mt29ocA4agnMrLsOP69jC1HPyBUjJay-7l" )
4447
4548 cli , err := NewClient (Mainnet (),
@@ -80,6 +83,9 @@ func TestAsyncInitialization(t *testing.T) {
8083}
8184
8285func TestSyncInitialization (t * testing.T ) {
86+ if os .Getenv ("TEST_CI" ) == "1" {
87+ t .SkipNow ()
88+ }
8389 cli , err := NewClient (Mainnet (), WithMaxConnectionsNumber (2 ))
8490 if err != nil {
8591 log .Fatalf ("Unable to create tongo client: %v" , err )
@@ -167,7 +173,9 @@ func TestGetTransactions(t *testing.T) {
167173}
168174
169175func TestSendRawMessage (t * testing.T ) {
170- t .Skip () //TODO: generate new valid message
176+ if os .Getenv ("TEST_CI" ) == "1" {
177+ t .SkipNow ()
178+ }
171179 b , _ := hex .DecodeString ("b5ee9c72010204010001700003e1880111b05b70f10022319f670ac91fa98660b3dc71a88892adbce0efcedfb15bc366119fdfc5395c5eb526485a4fa810c3d487ef036f3f8712ef3cce5c77e108fb9b6913d7f8a335a3e9a5ddee7e9ac4fa9da1be58490a5738293a1999ce6eab482de185353462ffffffffe0000000105001020300deff0020dd2082014c97ba218201339cbab19f71b0ed44d0d31fd31f31d70bffe304e0a4f2608308d71820d31fd31fd31ff82313bbf263ed44d0d31fd31fd3ffd15132baf2a15144baf2a204f901541055f910f2a3f8009320d74a96d307d402fb00e8d101a4c8cb1fcb1fcbffc9ed5400500000000029a9a317466f16a147b9b9db427d4e4763f455bc7c242757184ff564c421b371a41b705700ba62006707e00a47440d27444d3bedced2323ef6d64e68543c1736839c777d16e8309f2a098a678000000000000000000000000000000000000064636163363637332d656566342d343038662d623561652d346235363561323265643238" )
172180 tongoClient , err := NewClientWithDefaultTestnet ()
173181 if err != nil {
@@ -183,6 +191,9 @@ func TestSendRawMessage(t *testing.T) {
183191}
184192
185193func TestRunSmcMethod (t * testing.T ) {
194+ if os .Getenv ("TEST_CI" ) == "1" {
195+ t .SkipNow ()
196+ }
186197 tongoClient , err := NewClient (Mainnet (), FromEnvs ())
187198 if err != nil {
188199 log .Fatalf ("Unable to create tongo client: %v" , err )
@@ -195,6 +206,9 @@ func TestRunSmcMethod(t *testing.T) {
195206}
196207
197208func TestGetAllShards (t * testing.T ) {
209+ if os .Getenv ("TEST_CI" ) == "1" {
210+ t .SkipNow ()
211+ }
198212 api , err := NewClient (Mainnet (), FromEnvs ())
199213 if err != nil {
200214 t .Fatal (err )
@@ -248,6 +262,9 @@ func createOutputFile(api *Client, extID ton.BlockIDExt, filename string, accoun
248262}
249263
250264func TestGetBlock (t * testing.T ) {
265+ if os .Getenv ("TEST_CI" ) == "1" {
266+ t .SkipNow ()
267+ }
251268 testCases := []struct {
252269 name string
253270 blockID string
@@ -331,6 +348,9 @@ func TestGetBlock(t *testing.T) {
331348}
332349
333350func TestGetConfigAll (t * testing.T ) {
351+ if os .Getenv ("TEST_CI" ) == "1" {
352+ t .SkipNow ()
353+ }
334354 api , err := NewClient (Mainnet (), FromEnvs ())
335355 if err != nil {
336356 t .Fatal (err )
@@ -342,6 +362,9 @@ func TestGetConfigAll(t *testing.T) {
342362}
343363
344364func TestGetAccountState (t * testing.T ) {
365+ if os .Getenv ("TEST_CI" ) == "1" {
366+ t .SkipNow ()
367+ }
345368 api , err := NewClient (Mainnet (), FromEnvs ())
346369 if err != nil {
347370 t .Fatal (err )
@@ -375,6 +398,9 @@ func TestGetAccountState(t *testing.T) {
375398}
376399
377400func TestLookupBlock (t * testing.T ) {
401+ if os .Getenv ("TEST_CI" ) == "1" {
402+ t .SkipNow ()
403+ }
378404 api , err := NewClient (Mainnet (), FromEnvs ())
379405 if err != nil {
380406 t .Fatal (err )
@@ -397,6 +423,9 @@ func TestLookupBlock(t *testing.T) {
397423}
398424
399425func TestGetOneTransaction (t * testing.T ) {
426+ if os .Getenv ("TEST_CI" ) == "1" {
427+ t .SkipNow ()
428+ }
400429 tongoClient , err := NewClient (Mainnet (), FromEnvs ())
401430 if err != nil {
402431 log .Fatalf ("Unable to create tongo client: %v" , err )
@@ -437,6 +466,9 @@ func TestGetOneTransaction(t *testing.T) {
437466}
438467
439468func TestGetLibraries (t * testing.T ) {
469+ if os .Getenv ("TEST_CI" ) == "1" {
470+ t .SkipNow ()
471+ }
440472 tongoClient , err := NewClient (Mainnet (), FromEnvs ())
441473 if err != nil {
442474 log .Fatalf ("Unable to create tongo client: %v" , err )
@@ -465,6 +497,9 @@ func TestGetLibraries(t *testing.T) {
465497}
466498
467499func TestGetJettonWallet (t * testing.T ) {
500+ if os .Getenv ("TEST_CI" ) == "1" {
501+ t .SkipNow ()
502+ }
468503 tongoClient , err := NewClientWithDefaultTestnet ()
469504 if err != nil {
470505 log .Fatalf ("Unable to create tongo client: %v" , err )
@@ -479,6 +514,9 @@ func TestGetJettonWallet(t *testing.T) {
479514}
480515
481516func TestGetJettonData (t * testing.T ) {
517+ if os .Getenv ("TEST_CI" ) == "1" {
518+ t .SkipNow ()
519+ }
482520 tongoClient , err := NewClientWithDefaultTestnet ()
483521 if err != nil {
484522 log .Fatalf ("Unable to create tongo client: %v" , err )
@@ -492,6 +530,9 @@ func TestGetJettonData(t *testing.T) {
492530}
493531
494532func TestGetJettonBalance (t * testing.T ) {
533+ if os .Getenv ("TEST_CI" ) == "1" {
534+ t .SkipNow ()
535+ }
495536 tongoClient , err := NewClientWithDefaultTestnet ()
496537 if err != nil {
497538 log .Fatalf ("Unable to create tongo client: %v" , err )
@@ -505,6 +546,9 @@ func TestGetJettonBalance(t *testing.T) {
505546}
506547
507548func TestDnsResolve (t * testing.T ) {
549+ if os .Getenv ("TEST_CI" ) == "1" {
550+ t .SkipNow ()
551+ }
508552 tongoClient , err := NewClientWithDefaultTestnet ()
509553 if err != nil {
510554 log .Fatalf ("Unable to create tongo client: %v" , err )
@@ -518,6 +562,9 @@ func TestDnsResolve(t *testing.T) {
518562}
519563
520564func TestGetRootDNS (t * testing.T ) {
565+ if os .Getenv ("TEST_CI" ) == "1" {
566+ t .SkipNow ()
567+ }
521568 tongoClient , err := NewClient (Mainnet (), FromEnvs ())
522569 if err != nil {
523570 log .Fatalf ("Unable to create tongo client: %v" , err )
@@ -530,6 +577,9 @@ func TestGetRootDNS(t *testing.T) {
530577}
531578
532579func TestClient_GetTransactionsForUnknownAccount (t * testing.T ) {
580+ if os .Getenv ("TEST_CI" ) == "1" {
581+ t .SkipNow ()
582+ }
533583 var a ton.AccountID
534584 rand .Read (a .Address [:])
535585 client , err := NewClientWithDefaultTestnet ()
@@ -544,6 +594,9 @@ func TestClient_GetTransactionsForUnknownAccount(t *testing.T) {
544594}
545595
546596func TestMappingTransactionsToBlocks (t * testing.T ) {
597+ if os .Getenv ("TEST_CI" ) == "1" {
598+ t .SkipNow ()
599+ }
547600 const limit = 100
548601 c , err := NewClient (Mainnet (), FromEnvs ())
549602 if err != nil {
@@ -593,7 +646,9 @@ func TestMappingTransactionsToBlocks(t *testing.T) {
593646}
594647
595648func TestFromEnvs (t * testing.T ) {
596-
649+ if os .Getenv ("TEST_CI" ) == "1" {
650+ t .SkipNow ()
651+ }
597652 os .Setenv ("LITE_SERVERS" , "some-value" )
598653 options := Options {}
599654 err := FromEnvs ()(& options )
@@ -623,6 +678,9 @@ func TestFromEnvs(t *testing.T) {
623678}
624679
625680func TestWaitMasterchainBlock (t * testing.T ) {
681+ if os .Getenv ("TEST_CI" ) == "1" {
682+ t .SkipNow ()
683+ }
626684 api , err := NewClient (Mainnet (), FromEnvs ())
627685 if err != nil {
628686 t .Fatal (err )
0 commit comments