Commit 4b964c2
committed
Fix /ping endpoint by removing time-based exception logic
Removed the deliberate exception that was causing the /ping endpoint to fail
approximately 1/3 of the time when int(time.time()) % 3 == 0. The endpoint
now reliably returns {"pong": True} on all requests.
Also added test coverage for the /ping endpoint to verify correct behavior.1 parent 12f5d2d commit 4b964c2
2 files changed
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | 15 | | |
19 | 16 | | |
20 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
0 commit comments