You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: core/src/main/scala/com/colisweb/jruby/concurrent/constant/memory/excel/ConcurrentConstantMemoryExcel.scala
// We'll manually manage the `flush` to the hard drive.
161
+
Task(newSXSSFWorkbook(-1))
162
+
} { wb: SXSSFWorkbook=>
163
+
Task {
164
+
wb.dispose() // dispose of temporary files backing this workbook on disk. Necessary because not done in the `close()`. See: https://stackoverflow.com/a/50363245
Copy file name to clipboardExpand all lines: core/src/test/scala/com/colisweb/jruby/concurrent/constant/memory/excel/ConcurrentConstantMemoryExcelSpec.scala
+44Lines changed: 44 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -73,4 +73,48 @@ class ConcurrentConstantMemoryExcelSpec extends FlatSpec with Matchers {
73
73
cms.get().pages.forall(page =>Files.exists(page.path)) shouldBe false// clean the tmp CSV files automatically.
74
74
}
75
75
76
+
"ConcurrentConstantMemoryExcel#writeFile" should "not change the police size if the text is long" in {
0 commit comments