Skip to content

Commit f6adc1a

Browse files
committedMar 23, 2025
chore: add more ut
1 parent 6bee1e9 commit f6adc1a

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
 

‎pkg/handler/function_test.go

+11
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ func TestFunctions(t *testing.T) {
6565
kubevpnProxyWithServiceMeshAndGvisorMode(t)
6666
commonTest(t)
6767
t.Run("serviceMeshReviewsServiceIP", serviceMeshReviewsServiceIP)
68+
kubevpnQuit(t)
6869
}
6970

7071
func commonTest(t *testing.T) {
@@ -424,6 +425,16 @@ func kubevpnStatus(t *testing.T) {
424425
}
425426
}
426427

428+
func kubevpnQuit(t *testing.T) {
429+
cmd := exec.Command("kubevpn", "quit")
430+
cmd.Stdout = os.Stdout
431+
cmd.Stderr = os.Stderr
432+
err := cmd.Run()
433+
if err != nil {
434+
t.Fatal(err)
435+
}
436+
}
437+
427438
func kubectl(t *testing.T) {
428439
cmd := exec.Command("kubectl", "get", "pods", "-o", "wide")
429440
cmd.Stdout = os.Stdout

0 commit comments

Comments
 (0)