From 458a873505a911c535775b0b4a52dda2098599dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xavier=20L=C3=A9aut=C3=A9?= Date: Wed, 2 Apr 2014 15:37:54 -0700 Subject: [PATCH] make test reflect the fact that resulting sequence is not consumed yet --- .../java/io/druid/client/CachePopulatingQueryRunnerTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/test/java/io/druid/client/CachePopulatingQueryRunnerTest.java b/server/src/test/java/io/druid/client/CachePopulatingQueryRunnerTest.java index b87cb15b317..bb73c5d58bc 100644 --- a/server/src/test/java/io/druid/client/CachePopulatingQueryRunnerTest.java +++ b/server/src/test/java/io/druid/client/CachePopulatingQueryRunnerTest.java @@ -123,7 +123,7 @@ public class CachePopulatingQueryRunnerTest Sequence res = runner.run(builder.build()); // base sequence is not closed yet - Assert.assertTrue(closable.isClosed()); + Assert.assertFalse("sequence must not be closed", closable.isClosed()); ArrayList results = Sequences.toList(res, new ArrayList()); Assert.assertTrue(closable.isClosed()); Assert.assertEquals(expectedRes, results);