Skip to content

Commit

Permalink
Merge pull request #2141 from bugsnag/fix-electron-v8
Browse files Browse the repository at this point in the history
Fix electron v8
  • Loading branch information
djskinner authored Jul 24, 2024
2 parents 6118ca0 + 37b6b0d commit 0c0fd2e
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 24 deletions.
2 changes: 1 addition & 1 deletion test/electron/features/support/utils/payload-matchers.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ const compareArray = (expected, actual, path) => {
let found = 0 // counts matching indices and ensures ordering is correct
const expectToFind = expected.length
const keyPath = [path, '{index}'].join('.')
let differences
let differences = []
for (const item of actual) {
if (found === expectToFind) {
break
Expand Down
2 changes: 1 addition & 1 deletion test/electron/fixtures/app/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function makeSimpleGetRequest (fail = false) {
}

function networkRequestError () {
const request = net.request('http://locahost:65536/')
const request = net.request('http://locahost:994/')
request.on('error', notify)
request.end()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"timestamp": "{TIMESTAMP}",
"metaData": {
"method": "GET",
"url": "http://locahost:65536/",
"url": "http://locahost:994/",
"status": "{TYPE:undefined}",
"duration": "{TYPE:number}"
}
Expand All @@ -71,13 +71,7 @@
{
"errorMessage": "something bad",
"errorClass": "ReferenceError",
"stacktrace": [{
"file": "./src/errors.js",
"lineNumber": 18,
"code": {
"1": "{TYPE:string}"
}
}],
"stacktrace": [],
"type": "electronnodejs"
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,7 @@
{
"errorMessage": "something bad",
"errorClass": "ReferenceError",
"stacktrace": [{
"file": "./src/errors.js",
"lineNumber": 18,
"code": {
"1": "{TYPE:string}"
}
}],
"stacktrace": [],
"type": "electronnodejs"
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,7 @@
{
"errorMessage": "something bad",
"errorClass": "ReferenceError",
"stacktrace": [{
"file": "./src/errors.js",
"lineNumber": 18,
"code": {
"1": "{TYPE:string}"
}
}],
"stacktrace": [],
"type": "electronnodejs"
}
]
Expand Down
1 change: 1 addition & 0 deletions test/electron/local-npm-config.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
storage: ../.verdaccio
max_body_size: 25mb
auth:
htpasswd:
file: ../.verdaccio/htpasswd
Expand Down

0 comments on commit 0c0fd2e

Please sign in to comment.