Skip to content

Commit

Permalink
revert changes to ConfigCompatError
Browse files Browse the repository at this point in the history
  • Loading branch information
gballet committed Oct 18, 2021
1 parent c0fc80d commit ca03e14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions params/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
package params

import (
"errors"
"math/big"
"reflect"
"testing"
)

Expand Down Expand Up @@ -91,7 +91,7 @@ func TestCheckCompatible(t *testing.T) {

for _, test := range tests {
err := test.stored.CheckCompatible(test.new, test.head)
if !errors.Is(err, test.wantErr) {
if !reflect.DeepEqual(err, test.wantErr) {
t.Errorf("error mismatch:\nstored: %v\nnew: %v\nhead: %v\nerr: %v\nwant: %v", test.stored, test.new, test.head, err, test.wantErr)
}
}
Expand Down

0 comments on commit ca03e14

Please sign in to comment.