We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54ae3ff commit dbc09b9Copy full SHA for dbc09b9
consensus/state_test.go
@@ -257,6 +257,14 @@ func TestStateBadProposal(t *testing.T) {
257
}
258
259
func TestStateOversizedBlock(t *testing.T) {
260
+ // Save original timeout and restore it after test to avoid race conditions
261
+ // This test needs more time due to oversized block processing
262
+ originalTimeout := ensureTimeout
263
+ ensureTimeout = 500 * time.Millisecond
264
+ defer func() {
265
+ ensureTimeout = originalTimeout
266
+ }()
267
+
268
const maxBytes = int64(types.BlockPartSizeBytes)
269
270
for _, testCase := range []struct {
0 commit comments