Skip to content

Commit

Permalink
fix(test): avoid concurrent read and write on same hash in oe test (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
mmsqe authored Dec 16, 2024
1 parent 234cdc4 commit c263939
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/v2/cometbft/abci_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -959,10 +959,10 @@ func TestOptimisticExecution(t *testing.T) {
require.Equal(t, resp.Status, abciproto.PROCESS_PROPOSAL_STATUS_ACCEPT)

// Initialize FinalizeBlock with correct hash - should use optimistic result
theHash = sha256.Sum256([]byte("test"))
theHash2 := sha256.Sum256([]byte("test"))
fbReq := &abciproto.FinalizeBlockRequest{
Height: 2,
Hash: theHash[:],
Hash: theHash2[:],
Time: ppReq.Time,
Txs: ppReq.Txs,
}
Expand Down

0 comments on commit c263939

Please sign in to comment.