[Geoserver-devel] [JIRA] (GEOS-7436) Invalid directory timestamp assumptions in ResourceTest break build on Windows

Ben Caradoc-Davies [Administrator] created an issue

GeoServer / BugGEOS-7436

Invalid directory timestamp assumptions in ResourceTest break build on Windows

Issue Type:

BugBug

Affects Versions:

2.9-beta

Assignee:

Ben Caradoc-Davies [Administrator]

Components:

REST

Created:

24/Feb/16 1:59 AM

Priority:

HighestHighest

Reporter:

Ben Caradoc-Davies [Administrator]

ResourceTest.testDirectory* tests compare the Resource.lastmodified of a directory against myRes.lastmodified, the Resource.lastmodified of its child. While these timestamps may be expected to be the same on Linux, this assumption does not appear to hold on Windows, where small timestamp discrepancies (milliseconds) result in failures such as:

Failed tests:   testDirectoryXML(org.geoserver.rest.resources.ResourceTest): expected:<2016-02-23 22:47:38.[34] UTC> but was:<2016-02-23 22:47:38.[49] UTC>
  testDirectoryJSON(org.geoserver.rest.resources.ResourceTest): objects differed at key [ResourceDirectory];: objects differed at key [lastModified]; expected:<...016-02-23 22:47:38.1[59] UTC> but was:<...016-02-23 22:47:38.1[74] UTC>

Add Comment

Add Comment

This message was sent by Atlassian JIRA (v7.2.0-OD-02-009#72000-sha1:d162675)

Atlassian logo