-
Notifications
You must be signed in to change notification settings - Fork 34
Vpn-4403: JWT skew cache tests #3921
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
base: develop
Are you sure you want to change the base?
Conversation
|
This PR is built on top of the #3878 for better readability |
pronebird
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 0 of 1 files reviewed, 1 unresolved discussion (waiting on @mmsinclair, @neacsu, and @trojanfoe)
nym-vpn-core/crates/nym-vpn-api-client/src/client.rs line 176 at r1 (raw file):
pub async fn get_remote_time(&self) -> Result<VpnApiTime> { #[cfg(test)] if let Some(mocked) = self.mock_remote_time.read().await.clone() {
This looks odd. Instead we should look into mocking api client
Could you elaborate more? Maybe with a little example? |
|
I also about using Do you prefer the |
trojanfoe
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 0 of 1 files reviewed, 1 unresolved discussion (waiting on @mmsinclair, @neacsu, and @pronebird)
nym-vpn-core/crates/nym-vpn-api-client/src/client.rs line 176 at r1 (raw file):
Previously, agentpietrucha (Karol Sawicki) wrote…
Could you elaborate more? Maybe with a little example?
What Andrej is referring to is Dependency Injection, using the mocked object during testing and the real thing elsewhere.
Ticket
JIRA-VPN-4403
Description
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context.
Checklist:
Screenshots (optional, if UI related)
This change is