Repository navigation
Commit d8281a1
ADFA-4484 Fix flawed KeyedDebouncingActionTest debounce window test
The previous test scheduled three different string keys ("first",
"second", "third"), which created three independent channel entries
rather than coalescing — causing all three actions to fire.
Replace with a test that schedules the same key twice with a delay
shorter than the debounce window, verifying the window resets and
the action fires exactly once.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent bd9c5ed commit d8281a1
1 file changed
Lines changed: 9 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
58 | | - | |
| 57 | + | |
| 58 | + | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
62 | | - | |
| 61 | + | |
| 62 | + | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
69 | 69 | | |
70 | | - | |
71 | | - | |
| 70 | + | |
72 | 71 | | |
73 | 72 | | |
74 | 73 | | |
| |||
0 commit comments