From 69e6ab9e30d6d0ec42431a578374aa1232799e97 Mon Sep 17 00:00:00 2001 From: Michi Mutsuzaki Date: Thu, 9 Nov 2023 15:46:54 +0000 Subject: [PATCH] Rename GetTestOrDie to MustGetTest Fixes: 89c7ff04254f ("connectivity: Add GetTestOrDie()") Ref: https://github.com/cilium/cilium-cli/pull/2096#pullrequestreview-1721958513 Signed-off-by: Michi Mutsuzaki --- connectivity/check/context.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/connectivity/check/context.go b/connectivity/check/context.go index 0353f51ad7..116380a0a9 100644 --- a/connectivity/check/context.go +++ b/connectivity/check/context.go @@ -293,9 +293,9 @@ func (ct *ConnectivityTest) GetTest(name string) (*Test, error) { panic("missing test descriptor for a registered name") } -// GetTestOrDie returns the test scope for test named "name" if found, +// MustGetTest returns the test scope for test named "name" if found, // or panics otherwise. -func (ct *ConnectivityTest) GetTestOrDie(name string) *Test { +func (ct *ConnectivityTest) MustGetTest(name string) *Test { test, err := ct.GetTest(name) if err != nil { panic(err)