AI-generated analysisPublished automatically and not human-verified. Validated context appears in community notes below.
← Watch feed
Informational 13 Bitcoin

pytest: fix flake in test_misc.

Public commit record

What the developer wrote

Authored by Rusty Russell

78/100 · Adequate
pytest: fix flake in test_misc.

I got a flake, but all I see is:
```

> assert suspended == set()
E AssertionError: assert {'c26485f2839c5a27'} == set()
E
E Extra items in the left set:
E 'c26485f2839c5a27'
E
E Full diff:
E - set()
E + {
E + 'c26485f2839c5a27',
E + }

tests/test_misc.py:5049: AssertionError
```

Add some more diagnostics, but it's also clear that something is being
suspended and not terminating before we finish.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Mentions testing or verification
The short version

What changed, and why it matters

This is a test-only reliability fix. A developer saw an occasional test failure where one background tracing call had not finished by the time the test ended. The patch adds a diagnostic line to the trace output and relaxes the test assertion to allow exactly one suspended call at shutdown, rather than requiring zero. There is no indication this affects real users, funds, or network security.

Recommended action

No security action needed. Treat as normal test-flake fix.

Security signals we found

No strong security signals were identified.

Risk score

Why this scored 13/100

Our methodology →
Potential impact 0/30
Exploitability 0/25
Stealth signal 0/15
Affected reach 0/15
Confidence 9/10
Evidence quality 4/5
Human-validated context

Community notes

Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.

No validated notes yet.

The AI analysis stands alone for now. Submit a note if you can add evidence or important context.