From a119b722431ffd2fbcbbb535b877dc627b91513f Mon Sep 17 00:00:00 2001 From: Juan Batiz-Benet Date: Thu, 2 Jul 2015 16:10:30 -0700 Subject: [PATCH] t0141-addfilter: check init has no filters License: MIT Signed-off-by: Juan Batiz-Benet --- test/sharness/t0141-addfilter.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/sharness/t0141-addfilter.sh b/test/sharness/t0141-addfilter.sh index 618c99fa7..f5fb3a025 100755 --- a/test/sharness/t0141-addfilter.sh +++ b/test/sharness/t0141-addfilter.sh @@ -65,6 +65,12 @@ test_swarm_filters() { test_swarm_filter_cmd } +test_expect_success "init without any filters" ' + echo "null" >expected && + ipfs config Swarm.AddrFilters >actual && + test_cmp expected actual +' + test_expect_success "adding addresses to the config to filter succeeds" ' ipfs config --json DialBlocklist "[\"$AF1\", \"$AF4\"]" '