From 25d29bbff5d3270b9f986504c9602a32514da375 Mon Sep 17 00:00:00 2001 From: Tim Kimber Date: Tue, 20 Jul 2021 16:09:13 +0100 Subject: [PATCH] Use setup_file so setup code only runs once --- test/2-simple-dns01-dig.bats | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/2-simple-dns01-dig.bats b/test/2-simple-dns01-dig.bats index f8f0cb4..a0d70a2 100644 --- a/test/2-simple-dns01-dig.bats +++ b/test/2-simple-dns01-dig.bats @@ -5,7 +5,7 @@ load '/bats-assert/load.bash' load '/getssl/test/test_helper.bash' -setup() { +setup_file() { if [ -z "$STAGING" ]; then export CURL_CA_BUNDLE=/root/pebble-ca-bundle.crt fi @@ -18,7 +18,7 @@ setup() { } -teardown() { +teardown_file() { if [ -f /usr/bin/host.getssl.bak ]; then mv /usr/bin/host.getssl.bak /usr/bin/host fi