Skip to content

Commit

Permalink
update expected annotation value in TaskRun e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
imjasonh authored and tekton-robot committed Aug 17, 2022
1 parent d911808 commit 9ca006e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/taskrun_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ spec:
}

releaseAnnotation, ok := taskrun.Annotations[pod.ReleaseAnnotation]
// This should always contain a commit truncated to ~7 characters (based on knative.dev/pkg/changeset)
commitIDRegexp := regexp.MustCompile(`^[a-f0-9]{7}$`)
// This should always contain a commit truncated to 7 characters, possibly with "-dirty" suffix (based on knative.dev/pkg/changeset)
commitIDRegexp := regexp.MustCompile(`^[a-f0-9]{7}(-dirty)?$`)
if !ok || !commitIDRegexp.MatchString(releaseAnnotation) {
t.Fatalf("expected Taskrun to be annotated with %s=devel or with nightly release tag, got %s=%s", pod.ReleaseAnnotation, pod.ReleaseAnnotation, releaseAnnotation)
}
Expand Down

0 comments on commit 9ca006e

Please sign in to comment.