Skip to content

Commit

Permalink
clean file created during test_ssh_port at the end of the test
Browse files Browse the repository at this point in the history
  • Loading branch information
didiermichel committed Oct 2, 2023
1 parent e5ed444 commit cab3174
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test_barman_wal_restore.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#
# You should have received a copy of the GNU General Public License
# along with Barman. If not, see <http://www.gnu.org/licenses/>.
import os
import subprocess

import mock
Expand Down Expand Up @@ -105,6 +106,8 @@ def test_ssh_port(self, popen_mock):
],
stdout=mock.ANY,
)
# Clean created file
os.remove("test_wal_dest")

@mock.patch("barman.clients.walrestore.RemoteGetWal")
def test_ssh_connectivity_error(self, remote_get_wal_mock, capsys, tmpdir):
Expand Down

0 comments on commit cab3174

Please sign in to comment.