From 06bb2941c3d4bb4dd6634f56946f480eeb33986d Mon Sep 17 00:00:00 2001 From: Gregory Michael Travis Date: Mon, 17 Feb 2025 16:22:07 -0500 Subject: [PATCH] Fix excel cache test failure (#12174) --- test/Table_Tests/src/IO/Excel_Spec.enso | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/test/Table_Tests/src/IO/Excel_Spec.enso b/test/Table_Tests/src/IO/Excel_Spec.enso index 5fe30f151a34..20d941637486 100644 --- a/test/Table_Tests/src/IO/Excel_Spec.enso +++ b/test/Table_Tests/src/IO/Excel_Spec.enso @@ -1152,25 +1152,28 @@ add_specs suite_builder = r3.at "Value" . at 0 . should_be_a Table r3.at "Value" . at 1 . should_be_a Excel_Workbook - group_builder.specify "should clear cache on simulated reload" pending="https://github.com/enso-org/enso/issues/12166" <| + group_builder.specify "should clear cache on simulated reload" <| ExcelConnectionPool.INSTANCE.simulateReloadTestOnly - check_workbook <| xlsx_sheet.read + w0 = xlsx_sheet.read ExcelConnectionPool.INSTANCE.getConnectionRecordCount . should_equal 1 - check_workbook <| xlsx_sheet.read + w1 = xlsx_sheet.read ExcelConnectionPool.INSTANCE.getConnectionRecordCount . should_equal 1 - check_workbook <| xls_sheet.read + w2 = xls_sheet.read ExcelConnectionPool.INSTANCE.getConnectionRecordCount . should_equal 2 - check_workbook <| xls_sheet.read + w3 = xls_sheet.read ExcelConnectionPool.INSTANCE.getConnectionRecordCount . should_equal 2 + [w0, w1, w2, w3].each check_workbook + ExcelConnectionPool.INSTANCE.simulateReloadTestOnly - check_workbook <| xlsx_sheet.read + w4 = xlsx_sheet.read ExcelConnectionPool.INSTANCE.getConnectionRecordCount . should_equal 1 - check_workbook <| xlsx_sheet.read + w5 = xlsx_sheet.read ExcelConnectionPool.INSTANCE.getConnectionRecordCount . should_equal 1 - check_workbook <| xls_sheet.read + w6 = xls_sheet.read ExcelConnectionPool.INSTANCE.getConnectionRecordCount . should_equal 2 - check_workbook <| xls_sheet.read + w7 = xls_sheet.read ExcelConnectionPool.INSTANCE.getConnectionRecordCount . should_equal 2 + [w4, w5, w6, w7].each check_workbook suite_builder.group "Problems" group_builder-> group_builder.specify "should report a user-friendly error message when format is missing a required argument" <|