Skip to content

Commit

Permalink
Fix flaky appconfig test (#12891)
Browse files Browse the repository at this point in the history
  • Loading branch information
kocubinski authored Aug 10, 2022
1 parent 50cec67 commit 461cfd6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/internal/testpb/modules.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ func provideStoreKey(key depinject.ModuleKey, state *runtimeState) StoreKey {

func provideApp(state *runtimeState, handlers map[string]Handler) App {
return func(w io.Writer) {
sort.Slice(state.storeKeys, func(i, j int) bool {
return state.storeKeys[i].name < state.storeKeys[j].name
})

for _, key := range state.storeKeys {
_, _ = fmt.Fprintf(w, "got store key %s\n", key.name)
}
Expand Down

0 comments on commit 461cfd6

Please sign in to comment.