MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / verify_package_published

Method verify_package_published

rake_tasks/common.rb:149–162  ·  view source on GitHub ↗
(url, timeout: 300)

Source from the content-addressed store, hash-verified

147 end
148
149 def self.verify_package_published(url, timeout: 300)
150 puts "Verifying #{url}..."
151 deadline = Process.clock_gettime(Process::CLOCK_MONOTONIC) + timeout
152 loop do
153 res = get_request(url)
154 break if res.is_a?(Net::HTTPSuccess)
155 raise "Package not published: #{url}" if Process.clock_gettime(Process::CLOCK_MONOTONIC) >= deadline
156
157 puts " #{res.code} from registry, retrying in 15s..."
158 sleep 15
159 end
160
161 puts 'Verified!'
162 end
163end

Callers

nothing calls this directly

Calls 1

codeMethod · 0.80

Tested by

no test coverage detected