Skip to content

Commit

Permalink
update code for new typings
Browse files Browse the repository at this point in the history
  • Loading branch information
mshustov committed Jul 20, 2020
1 parent 7c1503e commit fd7eaf8
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,6 @@ async function indexAlerts(
},
[]
);
await client.bulk({ body, refresh: 'true' });
await client.bulk({ body, refresh: true });
}
}
2 changes: 1 addition & 1 deletion x-pack/test/api_integration/apis/fleet/agents/acks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export default function (providerContext: FtrProviderContext) {
await esClient.update({
index: '.kibana',
id: 'fleet-agents:agent1',
refresh: 'true',
refresh: true,
body: {
doc: agentDoc,
},
Expand Down
2 changes: 1 addition & 1 deletion x-pack/test/api_integration/apis/fleet/agents/checkin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export default function (providerContext: FtrProviderContext) {
await esClient.update({
index: '.kibana',
id: 'fleet-agents:agent1',
refresh: 'true',
refresh: true,
body: {
doc: agentDoc,
},
Expand Down
2 changes: 1 addition & 1 deletion x-pack/test/api_integration/apis/fleet/agents/enroll.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export default function (providerContext: FtrProviderContext) {
await esClient.update({
index: '.kibana',
id: 'fleet-enrollment-api-keys:ed22ca17-e178-4cfe-8b02-54ea29fbd6d0',
refresh: 'true',
refresh: true,
body: {
doc: enrollmentApiKeyDoc,
},
Expand Down
2 changes: 1 addition & 1 deletion x-pack/test/api_integration/apis/fleet/unenroll_agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export default function (providerContext: FtrProviderContext) {
await esClient.update({
index: '.kibana',
id: 'fleet-agents:agent1',
refresh: 'true',
refresh: true,
body: {
doc: agentDoc,
},
Expand Down
2 changes: 1 addition & 1 deletion x-pack/test/api_integration/services/resolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export function ResolverGeneratorProvider({ getService }: FtrProviderContext) {
return array;
}, []);
// force a refresh here otherwise the documents might not be available when the tests search for them
await client.bulk({ body, refresh: 'true' });
await client.bulk({ body, refresh: true });
allTrees.push(tree);
}
return { trees: allTrees, eventsIndex, alertsIndex };
Expand Down

0 comments on commit fd7eaf8

Please sign in to comment.