Commit d65366a
committed
test(tui): drop racy tick-cmd assertion from slack subscription test
TestBottomSlackAnimationSubscribesWhileDecaying was flaky when run
in parallel with other tests touching the animation coordinator.
animation.Subscription.Start only returns a non-nil tea.Cmd for the
first global subscriber: subsequent subscribers piggy-back on the
already-running tick stream. So when other parallel tests had
already registered an animation, our Start returned nil even though
our subscription was correctly registered, and the
assert.NotNil(t, cmd, ...) addition from the previous commit failed
roughly 1 in 5 runs.
The local IsActive() assertion is sufficient to verify that
handleAnimationTick registered the subscription. Asserting on the
global tick command is racy without exposing test-only resets in
the animation package, which isn't worth it.
Verified stable across 20 -race iterations.
Assisted-By: docker-agent1 parent 19bf5d8 commit d65366a
1 file changed
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
114 | | - | |
115 | | - | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
116 | 118 | | |
117 | | - | |
| 119 | + | |
118 | 120 | | |
119 | 121 | | |
120 | | - | |
121 | | - | |
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
| |||
0 commit comments