Removed the buffer.Length() check that was causing intermittent test failures. The background goroutine started by newBufferedScrobbler can process and dequeue scrobble entries before the test assertion runs, leading to a race condition where the observed length is 0 instead of 1. The Eventually block that follows already verifies the scrobble was processed correctly. Signed-off-by: Deluan <deluan@navidrome.org> |
||
|---|---|---|
| .. | ||
| buffered_scrobbler.go | ||
| buffered_scrobbler_test.go | ||
| interfaces.go | ||
| play_tracker.go | ||
| play_tracker_test.go | ||
| scrobbler_suite_test.go | ||