diff options
author | Philippe Huibonhoa <phuibonhoa@gmail.com> | 2011-09-21 21:03:59 -0700 |
---|---|---|
committer | Philippe Huibonhoa <phuibonhoa@gmail.com> | 2011-09-21 21:03:59 -0700 |
commit | a0352a425f4995f7f1e1035290fe59c93ac0d24f (patch) | |
tree | cdb19be6ce6e2a919cdd66e4cf9038875f4ff090 | |
parent | 8d63678d1406c5518d437709af0fde717c0248d7 (diff) | |
download | rails-a0352a425f4995f7f1e1035290fe59c93ac0d24f.tar.gz rails-a0352a425f4995f7f1e1035290fe59c93ac0d24f.tar.bz2 rails-a0352a425f4995f7f1e1035290fe59c93ac0d24f.zip |
Updated existing test that fails with this fix (8d63678d1406c5518d437709af0fde717c0248d7). Before the fix the test was giving a false positive, because file_store.key_file_path would return an empty filename (i.e. test/tmp_cache/4D0/F4D rather than test/tmp_cache/4D0/F4D/xxxx…).
Even though the fix referenced above divides the filename into directories to prevent it from being too long, it seems that 1000 characters will always raise an error, so reducing the key size to 900).
-rw-r--r-- | activesupport/test/caching_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/test/caching_test.rb b/activesupport/test/caching_test.rb index 6b113594cc..b692a41312 100644 --- a/activesupport/test/caching_test.rb +++ b/activesupport/test/caching_test.rb @@ -357,7 +357,7 @@ module CacheStoreBehavior def test_really_long_keys key = "" - 1000.times{key << "x"} + 900.times{key << "x"} assert_equal true, @cache.write(key, "bar") assert_equal "bar", @cache.read(key) assert_equal "bar", @cache.fetch(key) |