Skip to content

Commit

Permalink
fixed flakey tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ShourieG committed Feb 12, 2024
1 parent 234d5de commit a518720
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions x-pack/filebeat/input/websocket/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,17 @@ var configTests = []struct {
},
wantErr: fmt.Errorf("failed to check program: failed compilation: ERROR: <input>:3:79: found no matching overload for '_?_:_' applied to '(bool, list(dyn), null)'\n | \"events\": has(state.cursor) && inner_body.ts > state.cursor.last_updated ? \n | ..............................................................................^ accessing config"),
},
{
name: "invalid_regexps",
config: map[string]interface{}{
"regexp": map[string]interface{}{
"products": "(?i)(xq>)d+)",
"solutions": "(?i)(Search|Observability|Security)",
},
"url": "wss://localhost:443/v1/stream",
},
wantErr: fmt.Errorf("failed to check regular expressions: error parsing regexp: unexpected ): `(?i)(xq>)d+)` accessing config"),
},
{
name: "valid_regexps",
config: map[string]interface{}{
Expand Down

0 comments on commit a518720

Please sign in to comment.