Skip to content

Commit 80fc46b

Browse files
committed
Add test to verify default branch is main
Adds TestDefaultBranch to ensure the DefaultBranch constant remains set to "main" and doesn't regress.
1 parent e3165b2 commit 80fc46b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

engine/pkg/util/branching/branching_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ import (
66
"github.com/stretchr/testify/assert"
77
)
88

9+
func TestDefaultBranch(t *testing.T) {
10+
assert.Equal(t, "main", DefaultBranch, "default branch must be main")
11+
}
12+
913
func TestParsingBranchNameFromSnapshot(t *testing.T) {
1014
const poolName = "pool/pg17"
1115

0 commit comments

Comments
 (0)