Author: fschumacher
Date: Mon Sep 18 18:51:56 2017
New Revision: 1808759

URL: http://svn.apache.org/viewvc?rev=1808759&view=rev
Log:
Force US-locale for parsing If-Modified-Since header in tests.

Without this, I had to unset LANG/LC environment entries for testBug61321
to complete.

Modified:
    
jmeter/trunk/test/src/org/apache/jmeter/protocol/http/control/TestCacheManagerHC4.java

Modified: 
jmeter/trunk/test/src/org/apache/jmeter/protocol/http/control/TestCacheManagerHC4.java
URL: 
http://svn.apache.org/viewvc/jmeter/trunk/test/src/org/apache/jmeter/protocol/http/control/TestCacheManagerHC4.java?rev=1808759&r1=1808758&r2=1808759&view=diff
==============================================================================
--- 
jmeter/trunk/test/src/org/apache/jmeter/protocol/http/control/TestCacheManagerHC4.java
 (original)
+++ 
jmeter/trunk/test/src/org/apache/jmeter/protocol/http/control/TestCacheManagerHC4.java
 Mon Sep 18 18:51:56 2017
@@ -288,7 +288,7 @@ public class TestCacheManagerHC4 extends
      * 
      */
     protected void checkIfModifiedSinceHeader(HttpRequestBase httpMethod) {
-        SimpleDateFormat dateFormat = new SimpleDateFormat("EEE, dd MMM yyyy 
HH:mm:ss z");
+        SimpleDateFormat dateFormat = new SimpleDateFormat("EEE, dd MMM yyyy 
HH:mm:ss z", Locale.US);
         try {
             assertEquals("Should have found 1 header 
"+HTTPConstantsInterface.IF_MODIFIED_SINCE, 
                     1, 


Reply via email to