Skip to content

Commit 0f9fff3

Browse files
karalabejagdeep sidhu
authored andcommitted
Merge pull request ethereum#25397 from karalabe/fix-tracer-capitalization
eth/tracers/js: fix capitalization in tests
1 parent 47d6ca6 commit 0f9fff3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

eth/tracers/js/tracer_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -103,15 +103,15 @@ func TestTracer(t *testing.T) {
103103
{ // tests that we don't panic on bad arguments to memory access
104104
code: "{depths: [], step: function(log) { this.depths.push(log.memory.slice(-1,-2)); }, fault: function() {}, result: function() { return this.depths; }}",
105105
want: ``,
106-
fail: "Tracer accessed out of bound memory: offset -1, end -2 at step (<eval>:1:53(15)) in server-side tracer function 'step'",
106+
fail: "tracer accessed out of bound memory: offset -1, end -2 at step (<eval>:1:53(15)) in server-side tracer function 'step'",
107107
}, { // tests that we don't panic on bad arguments to stack peeks
108108
code: "{depths: [], step: function(log) { this.depths.push(log.stack.peek(-1)); }, fault: function() {}, result: function() { return this.depths; }}",
109109
want: ``,
110-
fail: "Tracer accessed out of bound stack: size 0, index -1 at step (<eval>:1:53(13)) in server-side tracer function 'step'",
110+
fail: "tracer accessed out of bound stack: size 0, index -1 at step (<eval>:1:53(13)) in server-side tracer function 'step'",
111111
}, { // tests that we don't panic on bad arguments to memory getUint
112112
code: "{ depths: [], step: function(log, db) { this.depths.push(log.memory.getUint(-64));}, fault: function() {}, result: function() { return this.depths; }}",
113113
want: ``,
114-
fail: "Tracer accessed out of bound memory: available 0, offset -64, size 32 at step (<eval>:1:58(13)) in server-side tracer function 'step'",
114+
fail: "tracer accessed out of bound memory: available 0, offset -64, size 32 at step (<eval>:1:58(13)) in server-side tracer function 'step'",
115115
}, { // tests some general counting
116116
code: "{count: 0, step: function() { this.count += 1; }, fault: function() {}, result: function() { return this.count; }}",
117117
want: `3`,
@@ -232,7 +232,7 @@ func TestIsPrecompile(t *testing.T) {
232232
t.Error(err)
233233
}
234234
if string(res) != "false" {
235-
t.Errorf("Tracer should not consider blake2f as precompile in byzantium")
235+
t.Errorf("tracer should not consider blake2f as precompile in byzantium")
236236
}
237237

238238
tracer, _ = newJsTracer("{addr: toAddress('0000000000000000000000000000000000000009'), res: null, step: function() { this.res = isPrecompiled(this.addr); }, fault: function() {}, result: function() { return this.res; }}", nil)
@@ -242,7 +242,7 @@ func TestIsPrecompile(t *testing.T) {
242242
t.Error(err)
243243
}
244244
if string(res) != "true" {
245-
t.Errorf("Tracer should consider blake2f as precompile in istanbul")
245+
t.Errorf("tracer should consider blake2f as precompile in istanbul")
246246
}
247247
}
248248

0 commit comments

Comments
 (0)