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: Fix NetSim unit tests on Chrome #33692

Merged
merged 1 commit into from Mar 18, 2020
Merged

Conversation

islemaster
Copy link
Contributor

These tests, designed to check behavior when base64 fails to decode, were passing on PhantomJS because the browser's atob function would break in these cases; but Chrome (and Firefox) seem to be more flexible about the base64 input to these functions, so they wouldn't hit the "graceful fallback" case like we want them to.

Fixed by including a question mark in the input for these "bad base64" tests, because it's not a valid base64 character.

@islemaster islemaster requested a review from Hamms March 17, 2020 23:50
Copy link
Contributor

@Hamms Hamms left a comment

Choose a reason for hiding this comment

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

subtle!

@islemaster islemaster merged commit 82f12c0 into staging Mar 18, 2020
@islemaster islemaster deleted the netsim-chrome-test-fix branch March 18, 2020 01:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants