This repository was archived by the owner on Sep 30, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +14
-1
lines changed
dev/ci/go-backcompat/flakefiles
codeintel/policies/internal/store Expand file tree Collapse file tree 3 files changed +14
-1
lines changed Original file line number Diff line number Diff line change
1
+ [
2
+ {
3
+ "path" : " internal/codeintel/policies/internal/store" ,
4
+ "prefix" : " TestSelectPoliciesForRepositoryMembershipUpdate" ,
5
+ "reason" : " The same policies are returned but in an unexpected order."
6
+ }
7
+ ]
Original file line number Diff line number Diff line change @@ -199,6 +199,8 @@ func TestUpdateReposMatchingPatternsOverLimit(t *testing.T) {
199
199
}
200
200
201
201
func TestSelectPoliciesForRepositoryMembershipUpdate (t * testing.T ) {
202
+ t .Skip ("Flaky due to unexpected ordering of results: https://github.com/sourcegraph/sourcegraph/issues/43472" )
203
+
202
204
logger := logtest .Scoped (t )
203
205
db := database .NewDB (logger , dbtest .NewDB (logger , t ))
204
206
store := testStoreWithoutConfigurationPolicies (t , db )
Original file line number Diff line number Diff line change 1
1
package result
2
2
3
- import "strings"
3
+ import (
4
+ "sort"
5
+ "strings"
6
+ )
4
7
5
8
// Types represents a set of result types.
6
9
// It's a bitset corresponding to the disjunction of types it represents.
@@ -50,5 +53,6 @@ func (r Types) String() string {
50
53
}
51
54
names = append (names , name )
52
55
}
56
+ sort .Strings (names )
53
57
return strings .Join (names , "|" )
54
58
}
You can’t perform that action at this time.
0 commit comments