diff --git a/repository/OpenPonk-Core/OPExamplePersistenceTest.class.st b/repository/OpenPonk-Core/OPExamplePersistenceTest.class.st index ecc97fee..a0999100 100644 --- a/repository/OpenPonk-Core/OPExamplePersistenceTest.class.st +++ b/repository/OpenPonk-Core/OPExamplePersistenceTest.class.st @@ -35,13 +35,17 @@ OPExamplePersistenceTest >> setUp [ { #category : 'running' } OPExamplePersistenceTest >> tearDown [ - super tearDown. sourceWorkbench ifNotNil: [ :workbench | - workbench application closeAllWindows ]. + workbench application closeAllWindows. + sourceWorkbench := nil ]. targetWorkbench ifNotNil: [ :workbench | - workbench application closeAllWindows ]. - file ifNil: [ ^ self ]. - file ensureDelete + workbench application closeAllWindows. + targetWorkbench := nil ]. + file ifNotNil: [ + file ensureDelete. + file := nil ]. + Smalltalk garbageCollect. + super tearDown ] { #category : 'tests' }