Skip to content

Commit cde84b8

Browse files
authored
Merge pull request rails#42536 from maleblond/fix-gcs-service-failing-test
Fix test failing in Active Storage's GCS service
2 parents c9a89a4 + 3c6f70a commit cde84b8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

activestorage/test/service/gcs_service_test.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class ActiveStorage::Service::GCSServiceTest < ActiveSupport::TestCase
5858
end
5959

6060
test "direct upload with cache control" do
61-
config_with_cache_control = { gcs: service_config[:gcs].merge({ cache_control: "public, max-age=1800" }) }
61+
config_with_cache_control = { gcs: SERVICE_CONFIGURATIONS[:gcs].merge({ cache_control: "public, max-age=1800" }) }
6262
service = ActiveStorage::Service.configure(:gcs, config_with_cache_control)
6363

6464
key = SecureRandom.base58(24)
@@ -119,7 +119,7 @@ class ActiveStorage::Service::GCSServiceTest < ActiveSupport::TestCase
119119
key = SecureRandom.base58(24)
120120
data = "Something else entirely!"
121121

122-
config_with_cache_control = { gcs: service_config[:gcs].merge({ cache_control: "public, max-age=1800" }) }
122+
config_with_cache_control = { gcs: SERVICE_CONFIGURATIONS[:gcs].merge({ cache_control: "public, max-age=1800" }) }
123123
service = ActiveStorage::Service.configure(:gcs, config_with_cache_control)
124124

125125
service.upload(key, StringIO.new(data), checksum: Digest::MD5.base64digest(data), content_type: "text/plain")

0 commit comments

Comments
 (0)