fix(test): avoid concurrent read and write on same hash in oe test (#22892)

This commit is contained in:
mmsqe
2024-12-16 13:47:43 +00:00
committed by GitHub
parent 234cdc45f2
commit c263939faa
+2 -2
View File
@@ -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,
}