Skip to content

Commit

Permalink
add T.Error when Test RPC Node not response.
Browse files Browse the repository at this point in the history
  • Loading branch information
max-uxuy committed Jan 12, 2024
1 parent 03ce859 commit fcd0e20
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions explorer/scan_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,12 @@ func TestTransactionDataByHash(t *testing.T) {
return
}

fmt.Println("Data:", data)
if data["error"] != nil {
t.Errorf("Rpc Node Response Error: %v", data["error"])
return
}

subData := data["result"].(map[string]interface{})
fmt.Println("Data>>> :", subData["input"])

Expand Down

0 comments on commit fcd0e20

Please sign in to comment.