From 898199b3fd1aa3ebce538c2ab28efb8d8cf15dda Mon Sep 17 00:00:00 2001 From: Jarell <91372088+jarelllama@users.noreply.github.com> Date: Mon, 1 Apr 2024 18:54:10 +0800 Subject: [PATCH] Fix --- functions/test_functions.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/functions/test_functions.sh b/functions/test_functions.sh index 0137c1994..8a08d3bae 100644 --- a/functions/test_functions.sh +++ b/functions/test_functions.sh @@ -191,10 +191,11 @@ test_invalid_removal() { printf "invalid-test.x\n" printf "invalid-test.100\n" printf "invalid-test.1x\n" - } >> input.txt # INPUTS + } >> data/pending/domains_scamadviser.tmp # INPUTS # EXPECTED OUTPUTS printf "invalid-test.xn--903fds\n" >> out_raw.txt + { printf "invalid,invalid-test-com\n" printf "invalid,100.100.100.100\n" @@ -244,7 +245,7 @@ test_redundant_removal() { test_toplist_removal() { if [[ "$script_to_test" == 'retrieve' ]]; then # INPUT - printf "microsoft.com\n" >> data/pending/domains_manual.tmp + printf "microsoft.com\n" >> data/pending/domains_scamadviser.tmp # EXPECTED OUTPUTS printf "microsoft.com\n" >> out_manual.txt printf "toplist,microsoft.com\n" >> out_log.txt @@ -336,7 +337,7 @@ TEST_RETRIEVE_VALIDATE() { # Check entries saved for manual review if [[ "$script_to_test" == 'retrieve' ]]; then - check_output "data/pending/domains_guntab.com.tmp" "out_manual.txt" "Manual review" + check_output "data/pending/domains_scamadviser.com.tmp" "out_manual.txt" "Manual review" fi if [[ "$script_to_test" == 'validate' ]]; then