Commit dbd1940
Fix flaky test: auto-generated IDs colliding with hardcoded vahter IDs (#112)
The shared ID counter in TgMessageUtils started at 1, so auto-generated
user IDs could reach 34 or 69 (the hardcoded vahter IDs). When this
happened, isBanAuthorized silently rejected the ban (can't ban a vahter),
causing "Vahter can unban user" to fail intermittently depending on test
collection execution order.
Fix:
- Bump counter start to 100000 to avoid all hardcoded IDs
- Add /unbanChatMember to FakeTgApi (was returning 500)
- Add verbose console logger to CI so test execution order is visible
Co-authored-by: Cursor <cursoragent@cursor.com>1 parent 55acbef commit dbd1940
File tree
3 files changed
+10
-3
lines changed- .github/workflows
- src
- VahterBanBot.Tests
- VahterBanBot
3 files changed
+10
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
10 | 17 | | |
11 | 18 | | |
12 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
0 commit comments