mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 07:06:42 +00:00
ethclient: improve testing for Version with better error logging
This commit is contained in:
parent
11c9fda82b
commit
591335f8d3
1 changed files with 3 additions and 2 deletions
|
|
@ -333,8 +333,9 @@ func testVersion(t *testing.T, client *rpc.Client) {
|
|||
if err != nil {
|
||||
t.Fatalf("unexpected error: %v", err)
|
||||
}
|
||||
if v != fmt.Sprintf("%s/%s-%s/%s", strings.TrimSuffix(filepath.Base(os.Args[0]), ".exe"), runtime.GOOS, runtime.GOARCH, runtime.Version()) {
|
||||
t.Fatalf("Version returned wrong value: %s", v)
|
||||
exp := fmt.Sprintf("%s/%s-%s/%s", strings.TrimSuffix(filepath.Base(os.Args[0]), ".exe"), runtime.GOOS, runtime.GOARCH, runtime.Version())
|
||||
if v != exp {
|
||||
t.Fatalf("Version returned wrong value: %s, expected: %s", v, exp)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue