Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jgit-dev] GitDateFormatterTest failing only in bazel

Hi,

 GitDateFormatterTest passes fine in eclipse, but fails in bazel:

 ~/devel/jgit (master)$ bazel test --test_output=all //org.eclipse.jgit.test:org_eclipse_jgit_util_GitDateFormatterTest
==================== Test output for //org.eclipse.jgit.test:org_eclipse_jgit_util_GitDateFormatterTest:
[...]
There were 2 failures:
1) LOCALE(org.eclipse.jgit.util.GitDateFormatterTest)
org.junit.ComparisonFailure: expected:<Sep 20, 2011[] 7:09:25 PM -0400> but was:<Sep 20, 2011[,] 7:09:25 PM -0400>
at org.junit.Assert.assertEquals(Assert.java:115)
at org.junit.Assert.assertEquals(Assert.java:144)
at org.eclipse.jgit.util.GitDateFormatterTest.LOCALE(GitDateFormatterTest.java:123)

2) LOCALELOCAL(org.eclipse.jgit.util.GitDateFormatterTest)
org.junit.ComparisonFailure: expected:<Sep 20, 2011[] 7:39:25 PM> but was:<Sep 20, 2011[,] 7:39:25 PM>
at org.junit.Assert.assertEquals(Assert.java:115)
at org.junit.Assert.assertEquals(Assert.java:144)
at org.eclipse.jgit.util.GitDateFormatterTest.LOCALELOCAL(GitDateFormatterTest.java:129)

IIUC, the tests use a hardcoded Locale.US via MockSystemReader. 

Is anybody else seeing this discrepancy? 

Regards,

Ivan  

Back to the top