Skip to content

Commit

Permalink
Bugfix in ZnStaticFileServerDelegateTest>>#testBasicGetWide
Browse files Browse the repository at this point in the history
in this test the modification time was taken from the wrong file, which could occasionally result in a bug, as not all 4 files created in the setup need to have to same modification time
  • Loading branch information
svenvc authored Dec 14, 2023
1 parent aeacce3 commit f174cd0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ testBasicGetWide
self assert: client contents equals: self wideHtml.
self
assert: (ZnUtils parseHttpDate: (client response headers at: 'Modification-Date'))
equals: (ZnFileSystemUtils modificationTimeFor: 'large.html') asUTC.
equals: (ZnFileSystemUtils modificationTimeFor: 'wide.html') asUTC.
self
assert: (ZnUtils parseHttpDate: (client response headers at: 'Expires')) > (DateAndTime now + 10 days).
self
assert: (client response headers at: 'Cache-Control')
equals: (server delegate maxAgeFor: ZnMimeType textHtml) ]
equals: (server delegate maxAgeFor: ZnMimeType textHtml) ]

0 comments on commit f174cd0

Please sign in to comment.