Skip to content

Commit

Permalink
Add back the GC as fallback for windows only
Browse files Browse the repository at this point in the history
  • Loading branch information
jecisc committed Nov 21, 2023
1 parent dbb753b commit a377d0d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion Iceberg-Tests/IceGitTestFactory.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,10 @@ IceGitTestFactory >> tearDownWithRepository: aRepository [

aRepository ifNotNil: [
aRepository free.
aRepository location ifNotNil: #ensureDeleteAll ].
[ aRepository location ifNotNil: #ensureDeleteAll ]
on: CannotDeleteFileException
do: [ "On windows it is possible we need to finalize everything before deleting the files. We do not do it directly to avoid to lose too much speed"
Smalltalk garbageCollect.
aRepository location ifNotNil: #ensureDeleteAll ] ].
self remoteFileUrl asFileReference ensureDeleteAll
]
6 changes: 5 additions & 1 deletion Iceberg-Tests/IceNotYetClonedRepositoryFixture.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -110,5 +110,9 @@ IceNotYetClonedRepositoryFixture >> setUp [
{ #category : 'running' }
IceNotYetClonedRepositoryFixture >> tearDown [

self location ifNotNil: #ensureDeleteAll
[ self location ifNotNil: #ensureDeleteAll ]
on: CannotDeleteFileException
do: [ "On windows it is possible we need to finalize everything before deleting the files. We do not do it directly to avoid to lose too much speed"
Smalltalk garbageCollect.
self location ifNotNil: #ensureDeleteAll ]
]

0 comments on commit a377d0d

Please sign in to comment.