From f206dbda8fc551fb033b9e9179edb980a449b5fc Mon Sep 17 00:00:00 2001 From: Jon Chappelow Date: Mon, 3 Mar 2025 17:45:20 -0600 Subject: [PATCH] stress: fix bad nonce recover logic in non -cb case --- test/stress/harness.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/stress/harness.go b/test/stress/harness.go index 0f6a5fae3..76fb2feaf 100644 --- a/test/stress/harness.go +++ b/test/stress/harness.go @@ -116,8 +116,9 @@ func (h *harness) underNonceLock(ctx context.Context, fn func(int64) error) erro // again shortly if there are others already in mempool. recoverNonce() h.printf("RESET NONCE TO LATEST REPORTED (underNonceLock): %d", h.nonce) + } else { + h.nonce-- } - h.nonce-- return err } return nil