Skip to content

Commit

Permalink
test: Fix clock mismatch on test
Browse files Browse the repository at this point in the history
  • Loading branch information
Hyodar committed Jul 23, 2024
1 parent 8d85770 commit 330cb96
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion aggregator/rpc_server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,11 @@ func TestProcessInvalidSignedStateRootUpdateMessage(t *testing.T) {
aggregator, _, _, _, _, _, mockOperatorRegistrationsServ, _, _, _, err := createMockAggregator(mockCtrl, MOCK_OPERATOR_PUBKEY_DICT)
assert.Nil(t, err)

aggregator.clock = core.Clock{Now: func() time.Time { return time.Unix(10_000, 0) }}
message := messages.StateRootUpdateMessage{
RollupId: 1,
BlockHeight: 2,
Timestamp: 3,
Timestamp: 9_995,
NearDaCommitment: keccak256(4),
NearDaTransactionId: keccak256(5),
StateRoot: keccak256(6),
Expand Down

0 comments on commit 330cb96

Please sign in to comment.