Skip to content

Commit 33700cc

Browse files
authored
Update unit tests to remove warnings from test output. (#41840) (#45222)
1 parent 7401921 commit 33700cc

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

x-pack/legacy/plugins/uptime/server/lib/adapters/pings/__tests__/elasticsearch_pings_adapter.test.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ describe('ElasticsearchPingsAdapter class', () => {
114114
head: async (request: any, params: any) => null,
115115
};
116116
const pingAdapter = new ElasticsearchPingsAdapter(pingDatabase);
117-
const result = await pingAdapter.getPingHistogram(serverRequest, '1234', '5678', null);
117+
const result = await pingAdapter.getPingHistogram(serverRequest, 'now-15m', 'now', null);
118118
expect(pingDatabase.search).toHaveBeenCalledTimes(1);
119119
expect(result).toEqual([]);
120120
});
@@ -131,7 +131,7 @@ describe('ElasticsearchPingsAdapter class', () => {
131131
head: async (request: any, params: any) => null,
132132
};
133133
const pingAdapter = new ElasticsearchPingsAdapter(pingDatabase);
134-
const result = await pingAdapter.getPingHistogram(serverRequest, '1234', '5678', null);
134+
const result = await pingAdapter.getPingHistogram(serverRequest, 'now-15m', 'now', null);
135135

136136
expect(pingDatabase.search).toHaveBeenCalledTimes(1);
137137
expect(result).toMatchSnapshot();
@@ -192,8 +192,8 @@ describe('ElasticsearchPingsAdapter class', () => {
192192
const pingAdapter = new ElasticsearchPingsAdapter(pingDatabase);
193193
const result = await pingAdapter.getPingHistogram(
194194
serverRequest,
195-
'1234',
196-
'5678',
195+
'now-15m',
196+
'now',
197197
JSON.stringify(searchFilter)
198198
);
199199

@@ -248,8 +248,8 @@ describe('ElasticsearchPingsAdapter class', () => {
248248
const pingAdapter = new ElasticsearchPingsAdapter(pingDatabase);
249249
const result = await pingAdapter.getPingHistogram(
250250
serverRequest,
251-
'1234',
252-
'5678',
251+
'now-15m',
252+
'now',
253253
searchFilter
254254
);
255255

@@ -270,8 +270,8 @@ describe('ElasticsearchPingsAdapter class', () => {
270270
const pingAdapter = new ElasticsearchPingsAdapter(pingDatabase);
271271
const result = await pingAdapter.getPingHistogram(
272272
serverRequest,
273-
'1234',
274-
'5678',
273+
'now-15m',
274+
'now',
275275
searchFilter
276276
);
277277

@@ -294,8 +294,8 @@ describe('ElasticsearchPingsAdapter class', () => {
294294
const pingAdapter = new ElasticsearchPingsAdapter(pingDatabase);
295295
const result = await pingAdapter.getPingHistogram(
296296
serverRequest,
297-
'1234',
298-
'5678',
297+
'now-15m',
298+
'now',
299299
searchFilter
300300
);
301301

0 commit comments

Comments
 (0)