Skip to content

Conversation

@crazytonyli
Copy link
Contributor

Implement #1043 in the Swift wrapper.

class LoginTests {

let client = WordPressLoginClient(urlSession: .shared)
let client = WordPressLoginClient(urlSession: .init(configuration: .ephemeral))
Copy link
Contributor Author

Choose a reason for hiding this comment

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

When you manually trust a certificate, it's trusted for the entire lifetime of the URLSession, which means that using the .shared URLSession would cause unit tests to interfere with each other.

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.

2 participants