Skip to content

Commit 40f4ef8

Browse files
committed
revert constant replacement in test/e2e/adc.go
1 parent 9fb82ce commit 40f4ef8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/e2e/scaffold/adc.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ import (
3131
"gopkg.in/yaml.v3"
3232

3333
adctypes "github.com/apache/apisix-ingress-controller/api/adc"
34-
apiv2 "github.com/apache/apisix-ingress-controller/api/v2"
3534
"github.com/apache/apisix-ingress-controller/internal/adc/translator"
3635
)
3736

@@ -45,7 +44,7 @@ func init() {
4544
if adc == "" {
4645
return
4746
}
48-
if strings.Contains(adc, apiv2.PassHostNode) {
47+
if strings.Contains(adc, "node") {
4948
parts := strings.Fields(adc)
5049
adcExec = parts[0]
5150
adcArgs = parts[1:]

0 commit comments

Comments
 (0)