Skip to content

Commit 15fbd85

Browse files
Fix SSL specs permission problem
The specs could fail if the /etc/mysql directory contained files that cannot be read by the user running the specs, eg. debian.cnf. Since we already specify :sslca, the :sslcapath option doesn't make any sense and can stay at the system default value.
1 parent 2325197 commit 15fbd85

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

spec/mysql2/client_spec.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,6 @@ def connect *args
134134
:sslkey => '/etc/mysql/client-key.pem',
135135
:sslcert => '/etc/mysql/client-cert.pem',
136136
:sslca => '/etc/mysql/ca-cert.pem',
137-
:sslcapath => '/etc/mysql/',
138137
:sslcipher => 'DHE-RSA-AES256-SHA'
139138
)
140139
}.should_not raise_error(Mysql2::Error)

0 commit comments

Comments
 (0)