Commit d6bc3f0b authored by Stephane Nicoll's avatar Stephane Nicoll

Fix build

Assert using epoch time
parent 76edaa7e
...@@ -59,7 +59,7 @@ public class ProjectInfoAutoConfigurationTests { ...@@ -59,7 +59,7 @@ public class ProjectInfoAutoConfigurationTests {
GitInfo gitInfo = this.context.getBean(GitInfo.class); GitInfo gitInfo = this.context.getBean(GitInfo.class);
assertThat(gitInfo.getBranch()).isNull(); assertThat(gitInfo.getBranch()).isNull();
assertThat(gitInfo.getCommit().getId()).isEqualTo("f95038e"); assertThat(gitInfo.getCommit().getId()).isEqualTo("f95038e");
assertThat(gitInfo.getCommit().getTime()).isEqualTo("2016-03-03T10:02:00+0100"); assertThat(gitInfo.getCommit().getTime().getTime()).isEqualTo(1456995720000L);
} }
@Test @Test
...@@ -68,7 +68,7 @@ public class ProjectInfoAutoConfigurationTests { ...@@ -68,7 +68,7 @@ public class ProjectInfoAutoConfigurationTests {
GitInfo gitInfo = this.context.getBean(GitInfo.class); GitInfo gitInfo = this.context.getBean(GitInfo.class);
assertThat(gitInfo.getBranch()).isEqualTo("master"); assertThat(gitInfo.getBranch()).isEqualTo("master");
assertThat(gitInfo.getCommit().getId()).isEqualTo("5009933"); assertThat(gitInfo.getCommit().getId()).isEqualTo("5009933");
assertThat(gitInfo.getCommit().getTime()).isEqualTo("2016-03-04T16:04:10+0100"); assertThat(gitInfo.getCommit().getTime().getTime()).isEqualTo(1457103850000L);
} }
@Test @Test
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment