epugh commented on PR #4462:
URL: https://github.com/apache/solr/pull/4462#issuecomment-4534785079
I have recently used TimeOut, and I was wondering if there are any strong
patterns in how we use, because I thoguht I had seen a streamlined pattern then
how hyou used it. I asked Claude for some help, and it reminde me we have done
a couple of lamda uses with timeout:
```
TimeOut t = new TimeOut(5000, TimeUnit.MILLISECONDS, TimeSource.NANO_TIME);
t.waitFor("Timeout waiting for c1", () ->
reader.getClusterState().getCollectionOrNull("c1") != null);
```
Not sure if that is useful at all to you, but I appreciate your working on
the flaky test!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]