Skip to main content

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

On Fri, Apr 26, 2019 at 4:48 AM Ivan Frade <ifrade@xxxxxxxxxx> wrote:
>
> 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?

It passes for me.  See the log here:

http://paste.openstack.org/show/749785/

I also included some environment details, i.e. bazel and java
versions.  I'm running it on OSX.

>
> Regards,
>
> Ivan
> _______________________________________________
> jgit-dev mailing list
> jgit-dev@xxxxxxxxxxx
> To change your delivery options, retrieve your password, or unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/jgit-dev


Back to the top