mirror of
https://github.com/kubenetworks/kubevpn.git
synced 2025-12-24 11:51:13 +08:00
using t.cleanup instead of t.run cleanup function
This commit is contained in:
@@ -33,7 +33,7 @@ var (
|
||||
func TestFunctions(t *testing.T) {
|
||||
t.Run(runtime.FuncForPC(reflect.ValueOf(PingPodIP).Pointer()).Name(), PingPodIP)
|
||||
t.Run(runtime.FuncForPC(reflect.ValueOf(UDP).Pointer()).Name(), UDP)
|
||||
t.Run("cancel", func(t *testing.T) { cancelFunc() })
|
||||
t.Cleanup(cancelFunc)
|
||||
}
|
||||
|
||||
func PingPodIP(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user