Skip to content

Commit 9e92f3c

Browse files
committed
update proxy server tests to match new syntax
1 parent 8e999bd commit 9e92f3c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

proxy/proxy_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ func TestProxyServerBasicHTTP(t *testing.T) {
3535
}))
3636

3737
// Create test rules (allow all for testing)
38-
testRules, err := rules.ParseAllowSpecs([]string{"*"})
38+
testRules, err := rules.ParseAllowSpecs([]string{"method=*"})
3939
if err != nil {
4040
t.Fatalf("Failed to parse test rules: %v", err)
4141
}
@@ -116,7 +116,7 @@ func TestProxyServerBasicHTTPS(t *testing.T) {
116116
}))
117117

118118
// Create test rules (allow all for testing)
119-
testRules, err := rules.ParseAllowSpecs([]string{"*"})
119+
testRules, err := rules.ParseAllowSpecs([]string{"method=*"})
120120
if err != nil {
121121
t.Fatalf("Failed to parse test rules: %v", err)
122122
}
@@ -210,7 +210,7 @@ func TestProxyServerCONNECT(t *testing.T) {
210210
}))
211211

212212
// Create test rules (allow all for testing)
213-
testRules, err := rules.ParseAllowSpecs([]string{"*"})
213+
testRules, err := rules.ParseAllowSpecs([]string{"method=*"})
214214
if err != nil {
215215
t.Fatalf("Failed to parse test rules: %v", err)
216216
}

0 commit comments

Comments
 (0)