Skip to content

Commit

Permalink
fix: handle pac branch does not exists scenario (#1045)
Browse files Browse the repository at this point in the history
when pac branch does not exists, don't fail
  • Loading branch information
tisutisu authored Feb 21, 2024
1 parent 81d6508 commit 6039445
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/rhtap-demo/rhtap-demo.go
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,10 @@ var _ = framework.RhtapDemoSuiteDescribe(func() {
}

// Delete new branch created by PaC and a testing branch used as a component's base branch
Expect(fw.AsKubeAdmin.CommonController.Github.DeleteRef(componentRepositoryName, pacBranchName)).To(Succeed())
err = fw.AsKubeAdmin.CommonController.Github.DeleteRef(componentRepositoryName, pacBranchName)
if err != nil {
Expect(err.Error()).To(ContainSubstring("Reference does not exist"))
}
Expect(fw.AsKubeAdmin.CommonController.Github.DeleteRef(componentRepositoryName, componentNewBaseBranch)).To(Succeed())
})
When("Component is switched to Advanced Build mode", func() {
Expand Down

0 comments on commit 6039445

Please sign in to comment.