Skip to content

Commit

Permalink
log the error that was caught
Browse files Browse the repository at this point in the history
  • Loading branch information
tsullivan committed Apr 24, 2020
1 parent 734c5d8 commit 81d740b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x-pack/test/functional/page_objects/reporting_page.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import http from 'http';
export function ReportingPageProvider({ getService, getPageObjects }) {
const retry = getService('retry');
const log = getService('log');
const config = getService('config');
const testSubjects = getService('testSubjects');
const browser = getService('browser');
const PageObjects = getPageObjects(['common', 'security', 'share', 'timePicker']);
Expand Down Expand Up @@ -51,7 +50,7 @@ export function ReportingPageProvider({ getService, getPageObjects }) {

getResponse(url) {
log.debug(`getResponse for ${url}`);
const auth = config.get('servers.elasticsearch.auth');
const auth = 'test_user:changeme'; // FIXME not sure why there is no config that can be read for this
const headers = {
Authorization: `Basic ${Buffer.from(auth).toString('base64')}`,
};
Expand All @@ -71,6 +70,7 @@ export function ReportingPageProvider({ getService, getPageObjects }) {
}
)
.on('error', e => {
log.error(e);
reject(e);
});
});
Expand Down

0 comments on commit 81d740b

Please sign in to comment.