Skip to content

Commit

Permalink
Fix other tests
Browse files Browse the repository at this point in the history
  • Loading branch information
carlos-romano committed Dec 31, 2024
1 parent 990725c commit 69ad3a7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions internal/statetransition/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import "github.com/pkg/errors"
var (
ErrTimeslotOutOfRange = errors.New("timeslot out of range")
ErrWrongAssignment = errors.New("wrong assignment")
ErrBadSignature = errors.New("bad_signature")
ErrReportTimeout = errors.New("report_timeout")
ErrBadAttestationParent = errors.New("bad_attestation_parent")
ErrBadOrder = errors.New("bad_order")
ErrCoreNotEngaged = errors.New("core_not_engaged")
ErrBadValidatorIndex = errors.New("bad_validator_index")
ErrBadSignature = errors.New("bad signature")
ErrReportTimeout = errors.New("report timeout")
ErrBadAttestationParent = errors.New("bad attestation parent")
ErrBadOrder = errors.New("bad order")
ErrCoreNotEngaged = errors.New("core not engaged")
ErrBadValidatorIndex = errors.New("bad validator index")
)
2 changes: 1 addition & 1 deletion tests/integration/assurances_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ func TestAssurancesTiny(t *testing.T) {
newBlock := mapBlock(tc.Input)
theState := mapAssurancesState(tc.PreState)
if theState.CoreAssignments, err = statetransition.CalculateIntermediateCoreFromAssurances(theState.ValidatorState.CurrentValidators, theState.CoreAssignments, newBlock.Header, newBlock.Extrinsic.EA); tc.Output.Err != "" {
assert.EqualError(t, err, tc.Output.Err)
require.EqualError(t, err, strings.ReplaceAll(tc.Output.Err, "_", " "))
} else {
require.NoError(t, err)
}
Expand Down

0 comments on commit 69ad3a7

Please sign in to comment.