From 9de09020388e320c67b0678ca00e353e9a306dde Mon Sep 17 00:00:00 2001 From: Uku Taht Date: Wed, 14 Apr 2021 15:08:44 +0300 Subject: [PATCH] Fix test --- test/workers/provision_ssl_certificates_test.exs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/workers/provision_ssl_certificates_test.exs b/test/workers/provision_ssl_certificates_test.exs index a3e0ce812..419d0225b 100644 --- a/test/workers/provision_ssl_certificates_test.exs +++ b/test/workers/provision_ssl_certificates_test.exs @@ -13,7 +13,10 @@ defmodule Plausible.Workers.SslCertificatesTest do ProvisionSslCertificates.perform(nil, nil, ssh_stub) - assert_receive({SSHEx, :run, [nil, 'sudo certbot certonly --nginx -n -d "custom-site.com"']}) + assert_receive( + {SSHEx, :run, + [nil, 'sudo certbot certonly --webroot -w /root/webroot -n -d "custom-site.com"']} + ) end test "sets has_ssl_certficate=true if the ssh command is succesful" do