Skip to content

Commit

Permalink
Skip test when socket doesn't exist
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Colson <composerinteralia@github.com>
  • Loading branch information
jhawthorn and composerinteralia committed Dec 18, 2023
1 parent cb85290 commit f31c5da
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion contrib/ruby/test/client_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ def test_trilogy_connect_unix_socket

socket = new_tcp_client.query("SHOW VARIABLES LIKE 'socket'").to_a[0][1]

assert File.exist?(socket), "cound not find socket at #{socket}"
if !File.exist?(socket)
skip "cound not find socket at #{socket}"
end

client = new_unix_client(socket)
refute_nil client
Expand Down

0 comments on commit f31c5da

Please sign in to comment.