Commit 9a1b58d
authored
test: remove go-cron race condition workaround (#406)
## Summary
- Removed the workaround for go-cron race conditions in
`TestSchedulerConcurrentOperations`
## Context
go-cron v0.7.1 (merged in #405) fixed the race conditions when
adding/removing jobs while the scheduler is running. This removes the
workaround that stopped the scheduler before adding new jobs.
## Changes
- Removed comments about go-cron internal race conditions
- Restored `defer scheduler.Stop()` pattern
- Test now adds jobs while scheduler is running (validates the fix)
## Test Plan
- [x] `go test -race ./...` passes
- [x] `TestSchedulerConcurrentOperations` passes with race detector
Ref: netresearch/go-cron#2621 file changed
+4
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | 180 | | |
184 | 181 | | |
185 | 182 | | |
186 | 183 | | |
187 | | - | |
188 | | - | |
| 184 | + | |
189 | 185 | | |
190 | 186 | | |
191 | 187 | | |
| |||
200 | 196 | | |
201 | 197 | | |
202 | 198 | | |
| 199 | + | |
203 | 200 | | |
204 | 201 | | |
205 | 202 | | |
| |||
244 | 241 | | |
245 | 242 | | |
246 | 243 | | |
247 | | - | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
| 244 | + | |
253 | 245 | | |
254 | 246 | | |
255 | | - | |
| 247 | + | |
256 | 248 | | |
257 | 249 | | |
258 | 250 | | |
| |||
0 commit comments