Skip to content

Commit ff555f8

Browse files
committed
rm unused testcase field
1 parent bb75165 commit ff555f8

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

eth/tracers/js/tracer_test.go

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ func TestTracer(t *testing.T) {
9898
for i, tt := range []struct {
9999
code string
100100
want string
101-
fail string
102101
}{
103102
{ // tests that we don't panic on bad arguments to memory access
104103
code: "{depths: [], step: function(log) { this.depths.push(log.memory.slice(-1,-2)); }, fault: function() {}, result: function() { return this.depths; }}",
@@ -138,8 +137,12 @@ func TestTracer(t *testing.T) {
138137
want: `{"0":0,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0}`,
139138
},
140139
} {
141-
if have, err := execTracer(tt.code); tt.want != string(have) || tt.fail != err {
142-
t.Errorf("testcase %d: expected return value to be '%s' got '%s', error to be '%s' got '%s'\n\tcode: %v", i, tt.want, string(have), tt.fail, err, tt.code)
140+
have, err := execTracer(tt.code)
141+
if err != "" {
142+
t.Errorf("testcase %d: failed with error '%s'\n", i, err)
143+
}
144+
if tt.want != string(have) {
145+
t.Errorf("testcase %d: expected return value to be '%s' got '%s'\n\tcode: %v", i, tt.want, string(have), tt.code)
143146
}
144147
}
145148
}

0 commit comments

Comments
 (0)