Skip to content

Commit e7a059d

Browse files
author
lec-bit
committed
update 4
Signed-off-by: lec-bit <[email protected]>
1 parent 26aa1ce commit e7a059d

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

test/e2e/main_test.go

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -109,26 +109,18 @@ func SetupApps(t resource.Context, apps *EchoDeployments) error {
109109
},
110110
}).
111111
WithConfig(echo.Config{
112-
Service: ServiceName2,
112+
Service: EnrolledToKmesh,
113113
Namespace: apps.Namespace,
114114
Ports: ports.All(),
115115
ServiceAccount: true,
116116
Subsets: []echo.SubsetConfig{
117117
{
118118
Replicas: 1,
119119
Version: "v1",
120-
Labels: map[string]string{
121-
"app": ServiceName2,
122-
"version": "v1",
123-
},
124120
},
125121
{
126122
Replicas: 1,
127123
Version: "v2",
128-
Labels: map[string]string{
129-
"app": ServiceName2,
130-
"version": "v2",
131-
},
132124
},
133125
},
134126
})
@@ -140,6 +132,6 @@ func SetupApps(t resource.Context, apps *EchoDeployments) error {
140132

141133
apps.All = echos
142134

143-
apps.EnrolledToKmesh = match.ServiceName(echo.NamespacedName{Name: ServiceName2, Namespace: apps.Namespace}).GetMatches(echos)
135+
apps.EnrolledToKmesh = match.ServiceName(echo.NamespacedName{Name: EnrolledToKmesh, Namespace: apps.Namespace}).GetMatches(echos)
144136
return nil
145137
}

0 commit comments

Comments
 (0)