aboutsummaryrefslogtreecommitdiffstats
path: root/internal/ethapi/tracer_test.go
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2016-08-24 22:10:51 +0800
committerGitHub <noreply@github.com>2016-08-24 22:10:51 +0800
commita2b2c8adc9dcd45e86ba26ce69db506c8d4b018a (patch)
treef52d52cb36e53590614977eec20593bb32da8b70 /internal/ethapi/tracer_test.go
parent4ce83bf57bd06d73dcc1bac364784a5afe24f9d4 (diff)
parentd20238c2a7cac8cbc1e643a2420f7762d7cf7fb0 (diff)
downloaddexon-a2b2c8adc9dcd45e86ba26ce69db506c8d4b018a.tar.gz
dexon-a2b2c8adc9dcd45e86ba26ce69db506c8d4b018a.tar.zst
dexon-a2b2c8adc9dcd45e86ba26ce69db506c8d4b018a.zip
Merge pull request #2941 from Arachnid/tracing
internal/ethapi: Improve tracer error reporting and serialization
Diffstat (limited to 'internal/ethapi/tracer_test.go')
-rw-r--r--internal/ethapi/tracer_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/ethapi/tracer_test.go b/internal/ethapi/tracer_test.go
index 2f1dfa0be..dbc38bbbc 100644
--- a/internal/ethapi/tracer_test.go
+++ b/internal/ethapi/tracer_test.go
@@ -161,7 +161,7 @@ func TestHalt(t *testing.T) {
tracer.Stop(timeout)
}()
- if _, err = runTrace(tracer); err != timeout {
+ if _, err = runTrace(tracer); err.Error() != "stahp in server-side tracer function 'step'" {
t.Errorf("Expected timeout error, got %v", err)
}
}
@@ -180,7 +180,7 @@ func TestHaltBetweenSteps(t *testing.T) {
tracer.Stop(timeout)
tracer.CaptureState(env, 0, 0, big.NewInt(0), big.NewInt(0), nil, nil, contract, 0, nil)
- if _, err := tracer.GetResult(); err != timeout {
+ if _, err := tracer.GetResult(); err.Error() != "stahp in server-side tracer function 'step'" {
t.Errorf("Expected timeout error, got %v", err)
}
}