Skip to content

Commit

Permalink
fix flaky test: branch_submit_multiple_pr_templates
Browse files Browse the repository at this point in the history
[skip changelog]: no user facing changes
  • Loading branch information
abhinav committed Sep 4, 2024
1 parent 0e77118 commit 8267d0c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions branch_submit.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"context"
"errors"
"fmt"
"slices"
"strings"
"time"

Expand Down Expand Up @@ -577,6 +578,10 @@ func (cmd *branchSubmitCmd) preparePublish(
templates = nil
}

slices.SortFunc(templates, func(a, b *forge.ChangeTemplate) int {
return strings.Compare(a.Filename, b.Filename)
})

changeTemplatesCh <- templates
}()

Expand Down

0 comments on commit 8267d0c

Please sign in to comment.