Skip to content

Commit

Permalink
Bump up memcached version (#919)
Browse files Browse the repository at this point in the history
  • Loading branch information
petergoldstein authored Jun 15, 2022
1 parent 8b00198 commit 959961b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ jobs:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
ruby-version:
- head
Expand All @@ -15,7 +16,7 @@ jobs:
- '2.7'
- '2.6'
- jruby-9.3
memcached-version: ['1.5.22', '1.6.14']
memcached-version: ['1.5.22', '1.6.15']

steps:
- uses: actions/checkout@v3
Expand Down
3 changes: 3 additions & 0 deletions test/helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
# supported protocols
raise StandardError, 'No supported version of memcached could be found.' unless MemcachedManager.version

# Generate self-signed certs for SSL once per suite run.
CertificateGenerator.generate

module MiniTest
class Spec
include Memcached::Helper
Expand Down
1 change: 0 additions & 1 deletion test/helpers/memcached.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ def memcached_persistent(protocol = :binary, port_or_socket = 21_345, args = '',

# Launches a persistent memcached process, configured to use SSL
def memcached_ssl_persistent(protocol = :binary, port_or_socket = rand(21_397..21_896), &block)
CertificateGenerator.generate
memcached_persistent(protocol,
port_or_socket,
CertificateGenerator.ssl_args,
Expand Down
4 changes: 2 additions & 2 deletions test/utils/certificate_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module CertificateGenerator

def self.generate
issuer_cert, issuer_key = generate_root_certificate
generate_server_certifcate(issuer_cert, issuer_key)
generate_server_certificate(issuer_cert, issuer_key)
end

def self.ssl_args
Expand All @@ -37,7 +37,7 @@ def self.ssl_context
ssl_context
end

def self.generate_server_certifcate(issuer_cert, issuer_key)
def self.generate_server_certificate(issuer_cert, issuer_key)
cert, key = generate_certificate_common('/CN=localhost', issuer_cert)
cert.serial = 2

Expand Down

0 comments on commit 959961b

Please sign in to comment.