Skip to content

Commit

Permalink
Garbage collect after example tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JanBliznicenko committed Jul 25, 2024
1 parent 0e68d38 commit 3c5a1c5
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions repository/OpenPonk-Core/OPExamplePersistenceTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -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' }
Expand Down

0 comments on commit 3c5a1c5

Please sign in to comment.