File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -94,7 +94,8 @@ func TestCommonUsePatterns(t *testing.T) {
9494 "errCategory=unexpected" ,
9595 "k1=v1" ,
9696 "callers=" ,
97- "Function:github.com/kubefleet-dev/kubefleet/pkg/utils/errors.TestCommonUsePatterns" ,
97+ "Function:" ,
98+ "/pkg/utils/errors.TestCommonUsePatterns" ,
9899 "k2=v2" ,
99100 }
100101 for _ , subStr := range wantSubStrings {
@@ -557,7 +558,7 @@ func TestNewUnexpectedError(t *testing.T) {
557558
558559 // Verify the first frame (the current test code).
559560 callerFunc := frames [0 ].Function
560- if callerFunc != "github.com/kubefleet-dev/kubefleet/ pkg/utils/errors.TestNewUnexpectedError" {
561+ if ! strings . Contains ( callerFunc , "/ pkg/utils/errors.TestNewUnexpectedError") {
561562 t .Errorf ("NewUnexpectedError() first caller function = %s, want TestNewUnexpectedError" , callerFunc )
562563 }
563564 callerFile := frames [0 ].File
You can’t perform that action at this time.
0 commit comments