@@ -14,9 +14,6 @@ func TestActionList404(t *testing.T) {
14
14
}`
15
15
filter := NewTestFilter (t , corefile )
16
16
filter .Build ()
17
- // if filter.blockTree.Len() != 0 {
18
- // t.Error("block tree should be empty")
19
- // }
20
17
if len (filter .blockDomains ) != 0 {
21
18
t .Error ("block domains should be empty" )
22
19
}
@@ -31,12 +28,6 @@ func TestActionListDomain(t *testing.T) {
31
28
}`
32
29
filter := NewTestFilter (t , corefile )
33
30
filter .Build ()
34
- // if filter.blockTree.Len() != 2 {
35
- // t.Errorf(
36
- // "expected two domains; found %d",
37
- // filter.blockTree.Len(),
38
- // )
39
- // }
40
31
if len (filter .blockDomains ) != 2 {
41
32
t .Errorf (
42
33
"expected two domains; found %d" ,
@@ -94,12 +85,6 @@ func TestActionMissingFile(t *testing.T) {
94
85
}`
95
86
filter := NewTestFilter (t , corefile )
96
87
filter .Build ()
97
- // if filter.blockTree.Len() != 0 {
98
- // t.Errorf(
99
- // "expected no domains; found %d",
100
- // filter.blockTree.Len(),
101
- // )
102
- // }
103
88
if len (filter .blockDomains ) != 0 {
104
89
t .Errorf (
105
90
"expected no domains; found %d" ,
@@ -114,12 +99,6 @@ func TestActionHTTPList(t *testing.T) {
114
99
}`
115
100
filter := NewTestFilter (t , corefile )
116
101
filter .Build ()
117
- // if filter.blockTree.Len() == 0 {
118
- // t.Errorf(
119
- // "expected domains from remote list; found %d",
120
- // filter.blockTree.Len(),
121
- // )
122
- // }
123
102
if len (filter .blockDomains ) == 0 {
124
103
t .Errorf (
125
104
"expected domains from remote list; found %d" ,
@@ -134,12 +113,6 @@ func TestActionNonExistentHTTPList(t *testing.T) {
134
113
}`
135
114
filter := NewTestFilter (t , corefile )
136
115
filter .Build ()
137
- // if filter.blockTree.Len() != 0 {
138
- // t.Errorf(
139
- // "expected no domains from non-existent remote list; found %d",
140
- // filter.blockTree.Len(),
141
- // )
142
- // }
143
116
if len (filter .blockDomains ) != 0 {
144
117
t .Errorf (
145
118
"expected no domains from non-existent remote list; found %d" ,
0 commit comments