Skip to content

Commit 3601ea5

Browse files
committed
Only test CA ssl spec if running locally
1 parent e99cf7e commit 3601ea5

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

spec/mongo/socket/ssl_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
end
4545
end
4646

47-
context 'when a CA certificate is provided' do
47+
context 'when a CA certificate is provided', if: running_ssl? && testing_locally? do
4848

4949
let(:options) do
5050
{

spec/spec_helper.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,10 @@ def list_command_enabled?
146146
$list_command_enabled ||= $mongo_client.cluster.servers.first.features.list_indexes_enabled?
147147
end
148148

149+
def testing_locally?
150+
!(ENV['CI'] || ENV['JENKINS_HOME'])
151+
end
152+
149153
def running_ssl?
150154
SSL
151155
end

0 commit comments

Comments
 (0)