diff options
author | Duarte Meneses <duarte.meneses@sonarsource.com> | 2018-08-22 09:22:22 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2018-09-19 10:51:41 +0200 |
commit | 19107a98d5248a1556ac76b3d9263f1e69fbcefc (patch) | |
tree | d37495a5062b8839b4e7dc069e005093c003b11c /server | |
parent | 47571cbb5b56357f4f7be610f2a04b6688e7d8ba (diff) | |
download | sonarqube-19107a98d5248a1556ac76b3d9263f1e69fbcefc.tar.gz sonarqube-19107a98d5248a1556ac76b3d9263f1e69fbcefc.zip |
Fix test with FPs
Diffstat (limited to 'server')
-rw-r--r-- | server/sonar-server/src/test/java/org/sonar/server/badge/ws/MeasureActionTest.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/sonar-server/src/test/java/org/sonar/server/badge/ws/MeasureActionTest.java b/server/sonar-server/src/test/java/org/sonar/server/badge/ws/MeasureActionTest.java index b45408a3604..00e22629c72 100644 --- a/server/sonar-server/src/test/java/org/sonar/server/badge/ws/MeasureActionTest.java +++ b/server/sonar-server/src/test/java/org/sonar/server/badge/ws/MeasureActionTest.java @@ -444,7 +444,7 @@ public class MeasureActionTest { assertThat(response.getHeader("Cache-Control")).contains("no-cache"); assertThat(response.getHeader("Expires")).isNotNull(); assertThat(response.getHeader("ETag")).isNull(); - assertThat(expiresDateFormat.parse(response.getHeader("Expires"))).isBefore(new Date()); + assertThat(expiresDateFormat.parse(response.getHeader("Expires"))).isBeforeOrEqualsTo(new Date()); assertThat(response.getInput()).contains("<text", ">" + expectedError + "</text>"); } |