Skip to content

Commit

Permalink
Fix flaky bsearch test (#99277)
Browse files Browse the repository at this point in the history
* Fix flaky bsearch test

* Review feedback
  • Loading branch information
lukasolson authored May 6, 2021
1 parent 822708b commit d882cd6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/api_integration/apis/search/bsearch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ export default function ({ getService }: FtrProviderContext) {

expect(resp.status).to.be(200);
expect(jsonBody.id).to.be(0);
expect(jsonBody.result.isPartial).to.be(false);
expect(jsonBody.result.isRunning).to.be(false);
expect(jsonBody.result).to.have.property('isPartial');
expect(jsonBody.result).to.have.property('isRunning');
expect(jsonBody.result).to.have.property('rawResponse');
});

it('should return a batch of successful resposes', async () => {
it('should return a batch of successful responses', async () => {
const resp = await supertest.post(`/internal/bsearch`).send({
batch: [
{
Expand Down Expand Up @@ -83,8 +83,8 @@ export default function ({ getService }: FtrProviderContext) {
const parsedResponse = parseBfetchResponse(resp);
expect(parsedResponse).to.have.length(2);
parsedResponse.forEach((responseJson) => {
expect(responseJson.result.isPartial).to.be(false);
expect(responseJson.result.isRunning).to.be(false);
expect(responseJson.result).to.have.property('isPartial');
expect(responseJson.result).to.have.property('isRunning');
expect(responseJson.result).to.have.property('rawResponse');
});
});
Expand Down

0 comments on commit d882cd6

Please sign in to comment.