GeezerVison is showing github.com — Pub/Sub unit tests are slow · Issue #1159 · googleapis/google-cloud-java
Pub/Sub unit tests are slow #1159DescriptionIn particular, AckDeadlineRenewerTest and LocalSystemTest take most of the time because of multiple 10 second waits that they do. The overall tests on my machine take 3:13, with 2:32 of it in Pub/Sub. Could these tests be refactored to use a fake clock? Activitymziccard commented on Aug 12, 2016 There was a bit of a discussion on this here garrettjonesgoogle commented on Aug 12, 2016 ContributorAuthor More actions It think it would be very helpful for development to separate out slow tests (which I would argue are more like integration tests) from the "mvn test" target, and provide a separate target for the slow tests. We might still want Travis to run the slow tests. mziccard commented on Aug 12, 2016
It think it would be very helpful
I'll consider this, but I don't see a pressing need at the moment garrettjonesgoogle commented on Aug 17, 2016 ContributorAuthor More actions Well, I find it very, very, very annoying when I have to run tests multiple times from the command line. garrettjonesgoogle commented on Nov 15, 2016 ContributorAuthor More actions The time it takes to run these tests probably has a multiplicative effect since there is a limit on the number of concurrent Travis builds per repository. If we speed this up we'll see much shorter queues. garrettjonesgoogle commented on Nov 21, 2016 ContributorAuthor More actions Actually the reason that builds take so long on Travis is because we run integration tests there.
Regardless, I fixed the running time of AckDeadlineRenewerTest in 1a8a438 by using a fake Clock and a fake ScheduledExecutorService. I'll resolve this issue now.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|