diff --git a/tests/azure/util_test.go b/tests/azure/util_test.go index eb3ecb76..7c4f4083 100644 --- a/tests/azure/util_test.go +++ b/tests/azure/util_test.go @@ -318,6 +318,9 @@ func getRepository(repoURL, branchName string, overrideBranch bool, password str Branch: checkoutBranch, }, }) + if err != nil { + return nil, "", err + } err = c.SwitchBranch(context.Background(), branchName) if err != nil {