Skip to content

Commit

Permalink
Fix type
Browse files Browse the repository at this point in the history
  • Loading branch information
maryam-saeidi committed Mar 14, 2024
1 parent 1168ecc commit 95711e0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import type { Client } from '@elastic/elasticsearch';
import type { SuperTest, Test } from 'supertest';
import { ToolingLog } from '@kbn/tooling-log';
import { ThresholdParams } from '@kbn/observability-plugin/common/custom_threshold_rule/types';
import { refreshSavedObjectIndices } from '../../../security_solution_api_integration/test_suites/detections_response/utils';
import { refreshSavedObjectIndices } from './refresh_index';

export async function createIndexConnector({
supertest,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,11 @@ export default function ({ getService }: FtrProviderContext) {

it('should set correct action parameter: ruleType', async () => {
const rangeFrom = moment(startedAt).subtract('5', 'minute').toISOString();
const resp = await waitForDocumentInIndex<{ ruleType: string; alertDetailsUrl: string }>({
const resp = await waitForDocumentInIndex<{
ruleType: string;
alertDetailsUrl: string;
reason: string;
}>({
esClient,
indexName: ALERT_ACTION_INDEX,
retryService,
Expand Down

0 comments on commit 95711e0

Please sign in to comment.