Skip to content

Commit

Permalink
Fix mistakenly broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksej-paschenko committed May 1, 2024
1 parent db8976b commit cee7947
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions liteclient/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (
"fmt"
"os"
"testing"
"time"

"github.com/tonkeeper/tongo/config"
)
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit cee7947

Please sign in to comment.