Skip to content

Commit 05bcb15

Browse files
committed
Namespace keys in EncodedKeyCacheBehavior test
It's a bit of a stab in the dark but I'm hoping it may fix the flaky failures such as: ```ruby Failure: OptimizedMemCacheStoreTest#test_iso_8859_6_encoded_values [/rails/activesupport/test/cache/behaviors/encoded_key_cache_behavior.rb:10]: Expected false to be truthy. ```
1 parent e150024 commit 05bcb15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

activesupport/test/cache/behaviors/encoded_key_cache_behavior.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
module EncodedKeyCacheBehavior
77
Encoding.list.each do |encoding|
88
define_method "test_#{encoding.name.underscore}_encoded_values" do
9-
key = (+"foo").force_encoding(encoding)
9+
key = (+"foo_#{encoding.name.underscore}").force_encoding(encoding)
1010
assert @cache.write(key, "1", raw: true)
1111
assert_equal "1", @cache.read(key, raw: true)
1212
assert_equal "1", @cache.fetch(key, raw: true)

0 commit comments

Comments
 (0)