Return-Path: X-Original-To: apmail-cloudstack-commits-archive@www.apache.org Delivered-To: apmail-cloudstack-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C5C6C10E5E for ; Tue, 24 Sep 2013 10:32:44 +0000 (UTC) Received: (qmail 4281 invoked by uid 500); 24 Sep 2013 10:31:08 -0000 Delivered-To: apmail-cloudstack-commits-archive@cloudstack.apache.org Received: (qmail 4077 invoked by uid 500); 24 Sep 2013 10:30:20 -0000 Mailing-List: contact commits-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list commits@cloudstack.apache.org Received: (qmail 4045 invoked by uid 99); 24 Sep 2013 10:30:07 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Sep 2013 10:30:07 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id A9C5E908478; Tue, 24 Sep 2013 10:30:06 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: hugo@apache.org To: commits@cloudstack.apache.org Message-Id: <375b72c979324875accc461ed6fd6848@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: git commit: updated refs/heads/master to 5ada5e8 Date: Tue, 24 Sep 2013 10:30:06 +0000 (UTC) Updated Branches: refs/heads/master e61f1bb15 -> 5ada5e88f This test appears to be locale sensitive, so fix the locale in the test Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/5ada5e88 Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/5ada5e88 Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/5ada5e88 Branch: refs/heads/master Commit: 5ada5e88f3097c2964a8ccdb2fce023c7efe12c2 Parents: e61f1bb Author: Hugo Trippaers Authored: Tue Sep 24 18:29:44 2013 +0800 Committer: Hugo Trippaers Committed: Tue Sep 24 18:30:00 2013 +0800 ---------------------------------------------------------------------- utils/test/com/cloud/utils/NumbersUtilTest.java | 3 +++ 1 file changed, 3 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/5ada5e88/utils/test/com/cloud/utils/NumbersUtilTest.java ---------------------------------------------------------------------- diff --git a/utils/test/com/cloud/utils/NumbersUtilTest.java b/utils/test/com/cloud/utils/NumbersUtilTest.java index 711cc22..cf829d9 100644 --- a/utils/test/com/cloud/utils/NumbersUtilTest.java +++ b/utils/test/com/cloud/utils/NumbersUtilTest.java @@ -18,12 +18,15 @@ package com.cloud.utils; import static org.junit.Assert.*; +import java.util.Locale; + import org.junit.Test; public class NumbersUtilTest { @Test public void formattingCheck() { + Locale.setDefault(Locale.US); // Fixed locale for the test long size = 1024*1024*1024; String formatted = NumbersUtil.toReadableSize(size); assertEquals("1.00 GB", formatted);