make test reflect the fact that resulting sequence is not consumed yet

This commit is contained in:
Xavier Léauté 2014-04-02 15:37:54 -07:00
parent ee34415470
commit 458a873505
1 changed files with 1 additions and 1 deletions

View File

@ -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);