diff --git a/liteclient/client_test.go b/liteclient/client_test.go index 73f22e6..2c5b707 100644 --- a/liteclient/client_test.go +++ b/liteclient/client_test.go @@ -7,7 +7,6 @@ import ( "fmt" "os" "testing" - "time" "github.com/tonkeeper/tongo/config" ) @@ -54,14 +53,11 @@ func TestGeneratedMethod(t *testing.T) { } client := NewClient(c) - for { - resp, err := client.LiteServerGetMasterchainInfo(context.Background()) - if err != nil { - panic(err) - } - fmt.Printf("Last seqno: %d\n", resp.Last.Seqno) - time.Sleep(1 * time.Second) + resp, err := client.LiteServerGetMasterchainInfo(context.Background()) + if err != nil { + panic(err) } + fmt.Printf("Last seqno: %d\n", resp.Last.Seqno) } func TestGeneratedMethod2(t *testing.T) {