Skip to content

Commit c293baf

Browse files
Skip flaky test (#5182)
1 parent 2099046 commit c293baf

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

internal/pkg/dl/policies_integration_test.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ func storeRandomPolicies(ctx context.Context, bulker bulk.Bulk, index string, co
6464
return nil
6565
}
6666

67-
//nolint:dupl // test duplication
6867
func TestQueryLatestPolicies(t *testing.T) {
6968
ctx := testlog.SetLogger(t).WithContext(t.Context())
7069

@@ -95,6 +94,7 @@ func TestQueryLatestPolicies(t *testing.T) {
9594
//
9695
//nolint:dupl // test duplication
9796
func TestQueryLatestPolicies400k(t *testing.T) {
97+
t.Skip("Test flaky, see: https://github.com/elastic/fleet-server/issues/5181")
9898
ctx := testlog.SetLogger(t).WithContext(t.Context())
9999

100100
index, bulker := ftesting.SetupCleanIndex(ctx, t, FleetPolicies, bulk.WithFlushThresholdCount(1))
@@ -111,7 +111,7 @@ func TestQueryLatestPolicies400k(t *testing.T) {
111111
t.Fatal(err)
112112
}
113113
return len(policies) == 4
114-
}, time.Second*2, time.Millisecond*100, "Expected to eventuually have 4 policies found: %d", len(policies))
114+
}, time.Second*2, time.Millisecond*100, "Expected to eventually have 4 policies found: %d", len(policies))
115115

116116
for _, policy := range policies {
117117
if policy.RevisionIdx != 100000 {
@@ -121,6 +121,8 @@ func TestQueryLatestPolicies400k(t *testing.T) {
121121
}
122122

123123
// TesyQueryLatestPolices11kUnique tests behaviour when 11k unique policies are used, there is a 10k size specification in the aggregation.
124+
//
125+
//nolint:dupl // test duplication
124126
func TestQueryLatestPolicies11kUnique(t *testing.T) {
125127
t.Skip("Re-enable after policy load issues have been sorted: https://github.com/elastic/fleet-server/issues/3254")
126128
ctx := testlog.SetLogger(t).WithContext(t.Context())

0 commit comments

Comments
 (0)