Skip to content

Commit 885ab32

Browse files
authored
fix: update test to match actual if-condition format in lock files (#28841)
1 parent a626a9b commit 885ab32

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pkg/workflow/task_job_generation_fix_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,8 @@ Do conditional work.`
164164
t.Error("Expected activation job for workflow with if condition")
165165
}
166166

167-
// Verify activation job has the if condition
168-
if !strings.Contains(lockContentStr, "if: ${{ github.ref == 'refs/heads/main' }}") {
167+
// Verify activation job has the if condition (without ${{ }} wrapper, as per lock file format)
168+
if !strings.Contains(lockContentStr, "if: github.ref == 'refs/heads/main'") {
169169
t.Error("Expected activation job to have the if condition")
170170
}
171171

0 commit comments

Comments
 (0)