Skip to content

Commit

Permalink
error check
Browse files Browse the repository at this point in the history
  • Loading branch information
akos-tk committed Nov 17, 2024
1 parent 8e5ddf0 commit 643e31d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion liteapi/pool/connection_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,12 @@ func Test_connection_FindMinAvailableMasterchainSeqno(t *testing.T) {
t.Run(tt.name, func(t *testing.T) {
pubkey, err := base64.StdEncoding.DecodeString(tt.key)
if err != nil {
panic(err)
t.Fatalf("pubkey decoding failed: %v", err)
}
c, err := liteclient.NewConnection(context.Background(), pubkey, tt.host)
if err != nil {
t.Fatalf("NewConnection() failed: %v", err)
}
conn := &connection{
client: liteclient.NewClient(c),
masterHeadUpdatedCh: make(chan masterHeadUpdated, 100),
Expand Down

0 comments on commit 643e31d

Please sign in to comment.