Skip to content

Commit

Permalink
Fix tests in GS64
Browse files Browse the repository at this point in the history
  • Loading branch information
gcotelli committed Feb 27, 2024
1 parent 48bc9d1 commit 710dfe2
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ CacheRepositoryTest >> resourceFor: answer expiringIn: aDuration [
CacheRepositoryTest >> setUp [

super setUp.
currentDateTime := DateAndTime now truncated.
currentDateTime := DateAndTime now rounded.
currentTimeProvider := [ currentDateTime ].
self setUpRepository
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ DistributedMemoryBasedExpiringCacheTest >> setUpExpiringCache [
DistributedMemoryBasedExpiringCacheTest >> waitFor: aDuration [

currentDateTime := currentDateTime + aDuration.
aDuration asDelay wait.
aDuration wait.
]
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ DistributedMemoryCacheRepositoryTest >> setUpRepository [
persistingTo: ( MDCacheClient onServers: {'127.0.0.1:11211'} )
]

{ #category : 'private' }
{ #category : 'running' }
DistributedMemoryCacheRepositoryTest >> waitFor: aDuration [

currentDateTime := currentDateTime + aDuration.
aDuration asDelay wait.
aDuration wait.
]
2 changes: 1 addition & 1 deletion source/Superluminal-RESTfulAPI/ExpiringResource.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ ExpiringResource >> expirationDateApplyingCacheControlDirectivesIfNone: noneBloc
self if: lowercasedDirective isNoCacheDirectiveApplyTo: expirationDates
].

^ expirationDates ifEmpty: [ noneBlock value ] ifNotEmpty: [ :dates | dates min ]
^ expirationDates minUsing: [ :date | date ] ifEmpty: noneBlock
]

{ #category : 'private' }
Expand Down

0 comments on commit 710dfe2

Please sign in to comment.