---
title: "Comment by Sebastian Lobato Genco on \"WhileSubscribed(5000)\" | Hashnode"
description: "Great article and discovery! Thanks a lot. One thing I discovered testing this extensively is that Espresso and Robolectric automated tests tend to kick the cou"
url: "https://hashnode.com/posts/whilesubscribed5000/630e96e456df9e8e502575df/comment/65251e475965fddfa7ea4813"
---

[Discussion](https://hashnode.com/posts/whilesubscribed5000/630e96e456df9e8e502575df)

Comment [WhileSubscribed(5000)](https://hashnode.com/posts/whilesubscribed5000/630e96e456df9e8e502575df)

[Sebastian Lobato Genco](https://hashnode.com/@sebaslogen)

[Oct 10, 2023](https://hashnode.com/posts/whilesubscribed5000/630e96e456df9e8e502575df/comment/65251e475965fddfa7ea4813)

Great article and discovery! Thanks a lot.

One thing I discovered testing this extensively is that Espresso and Robolectric automated tests tend to kick the count = 0 + your post() tricks earlier than Compose runs the first composition. Since Compose is ~100ms late to the party, tests fail. I solved it waiting (with a 1sec timeout) for a RESUME callback from a Compose listener.
