Permalink
Browse files

have ResourceCheckingSuite indicate the common solution

  • Loading branch information...
1 parent 7b0ab06 commit 7a9cec57405cf8c534ff0d7ee5a104428b14a2ab Stephan Zuercher committed Oct 11, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/test/scala/com/twitter/libkestrel/ResourceCheckingSuite.scala
View
2 src/test/scala/com/twitter/libkestrel/ResourceCheckingSuite.scala
@@ -23,7 +23,7 @@ trait ResourceCheckingSuite extends AbstractSuite { self: Suite =>
try {
super.withFixture(test)
assert(MemoryMappedFile.openFiles.isEmpty,
- "MemoryMappedFile.openFiles is not empty: " + MemoryMappedFile.openFiles.mkString(", "))
+ "MemoryMappedFile.openFiles is not empty: %s (did you forget to close a JournaledQueue?)".format(MemoryMappedFile.openFiles.mkString(", ")))
} finally {
MemoryMappedFile.reset()
}

0 comments on commit 7a9cec5

Please sign in to comment.