Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests: add missing arrays to InspectorIssues sample artifact #11871

Merged
merged 3 commits into from
Dec 29, 2020

Conversation

connorjclark
Copy link
Collaborator

This is the error w/o this change:

inspector-issues:warn Caught exception: Cannot read property 'length' of undefined

@connorjclark connorjclark requested a review from a team as a code owner December 22, 2020 20:41
@connorjclark connorjclark requested review from Beytoven and removed request for a team December 22, 2020 20:41
@google-cla google-cla bot added the cla: yes label Dec 22, 2020
@@ -14505,7 +14505,7 @@
{"pid":75994,"tid":17667,"ts":185608246435,"ph":"X","cat":"toplevel","name":"MessageLoop::RunTask","args":{"src_file":"../../ipc/ipc_mojo_bootstrap.cc","src_func":"SendMessage"},"dur":31,"tdur":30,"tts":78713},
{"pid":75994,"tid":17667,"ts":185608246474,"ph":"X","cat":"toplevel","name":"MessageLoop::RunTask","args":{"src_file":"../../ipc/ipc_mojo_bootstrap.cc","src_func":"SendMessage"},"dur":16,"tdur":16,"tts":78752},
{"pid":75994,"tid":17667,"ts":185608247189,"ph":"X","cat":"toplevel","name":"MessageLoop::RunTask","args":{"src_file":"../../ipc/ipc_mojo_bootstrap.cc","src_func":"SendMessage"},"dur":30,"tdur":29,"tts":78797},
{"_comment":"Manually added event to make sample lhr not error","name":"largestContentfulPaint::Candidate","pid":75994,"tid":17667,"ts":185608247190,"ph":"R","cat":"loading,rail,devtools.timeline","args":{"frame":"0x44d2861df8", "data": {"size": 50}}},
{"_comment":"Manually added event to make sample lhr not error","name":"largestContentfulPaint::Candidate","pid":75994,"tid":17667,"ts":185608247190,"ph":"R","cat":"loading,rail,devtools.timeline","args":{"frame":"0x44d2861df8","data":{"size":50}}},
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is gonna keep happening until we commit this (whitespace) change.

@@ -5532,7 +5536,7 @@
}
],
"id": "best-practices",
"score": null
"score": 0.13
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👀

@brendankenny
Copy link
Member

wow we really should have noticed an errored Best Practices in sample_v2 in the last month of PRs...

@connorjclark
Copy link
Collaborator Author

Agreed, let's add a test.

@connorjclark
Copy link
Collaborator Author

hmm, we don't have any jest tests that do assertions on the sample json, so not sure where to put it. wdyt? runner-test? or a new file sample-json-test?

@paulirish
Copy link
Member

new file sample-json-test?

👍

Copy link
Contributor

@Beytoven Beytoven left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yikes, can't believe I missed this. Great fix! 👍

@connorjclark connorjclark merged commit af6cc9d into master Dec 29, 2020
@connorjclark connorjclark deleted the minor-fix-inspec-issuues branch December 29, 2020 21:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants