cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jens Rantil" <>
Subject Re: Best practice for emulating a Cassandra timeout during unit tests?
Date Wed, 10 Dec 2014 09:09:33 GMT

I don’t know if this is “best practice”, but you could do this using mocking if nothing



Jens Rantil
Backend engineer
Tink AB

Phone: +46 708 84 18 32

Facebook Linkedin Twitter

On Tue, Dec 9, 2014 at 8:42 PM, Clint Kelly <> wrote:

> Hi all,
> I'd like to write some tests for my code that uses the Cassandra Java
> driver to see how it behaves if there is a read timeout while accessing
> Cassandra.  Is there a best-practice for getting this done?  I was thinking
> about adjusting the settings in the cluster builder to adjust the timeout
> settings to be something impossibly low (like 1ms), but I'd rather do
> something to my test Cassandra instance (using the
> EmbeddedCassandraService) to temporarily slow it down.
> Any suggestions?
> Best regards,
> Clint
View raw message