Skip to content

Commit bb4ead0

Browse files
authored
internal/mysql: Fix flaky test (#242)
1 parent 783b2f6 commit bb4ead0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/mysql/gen.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ func (r *Result) Structs(settings dinosql.GenerateSettings) []dinosql.GoStruct {
8080
}
8181
structs = append(structs, s)
8282
}
83-
83+
sort.Slice(structs, func(i, j int) bool { return structs[i].Name < structs[j].Name })
8484
return structs
8585
}
8686

0 commit comments

Comments
 (0)