Skip to content

Commit 8056049

Browse files
fix: A11y platformName
1 parent c512117 commit 8056049

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

bin/accessibility-automation/plugin/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ const browserstackAccessibility = (on, config) => {
2828
method: 'GET',
2929
timeout: 2000
3030
};
31-
const req = http.request(options, (res) => {
31+
const httpModule = http;
32+
const req = httpModule.request(options, (res) => {
3233
let data = '';
3334
res.on('data', (chunk) => data += chunk);
3435
res.on('end', () => {

bin/testObservability/reporter/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,8 @@ class MyReporter {
223223
if(this.httpServer !== null) return;
224224

225225
try {
226-
this.httpServer = http.createServer(async(req, res) => {
226+
const httpModule = http;
227+
this.httpServer = httpModule.createServer(async(req, res) => {
227228
try {
228229
// Set CORS headers
229230
res.setHeader('Access-Control-Allow-Origin', '*');

0 commit comments

Comments
 (0)