Commit fd30b14
fix(tests): Fix flaky continuous profiler test under gevent
The `assert_single_transaction_with_profile_chunks` helper now polls
for profile_chunk envelope items with a timeout instead of asserting
immediately. Under gevent on slow CI runners, the profiler thread may
not have flushed its buffer by the time the assertion runs, causing
sporadic failures.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent de650c8 commit fd30b14
1 file changed
+18
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
138 | | - | |
139 | | - | |
140 | | - | |
| 138 | + | |
141 | 139 | | |
142 | 140 | | |
143 | 141 | | |
144 | 142 | | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
145 | 160 | | |
146 | 161 | | |
147 | 162 | | |
| |||
0 commit comments