Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
waahm7 committed Aug 22, 2024
1 parent 7c16b43 commit ce9d1e1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions source/credentials_provider_cached.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ static void s_cached_credentials_provider_get_credentials_async_callback(
AWS_TIMESTAMP_SECS,
AWS_TIMESTAMP_NANOS,
NULL);
} else {
next_refresh_time_in_ns = high_res_now;
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion tests/credentials_provider_sts_tests.c
Original file line number Diff line number Diff line change
Expand Up @@ -2078,7 +2078,7 @@ static int s_credentials_provider_sts_cache_expiration_conflict(struct aws_alloc
s_tester.mocked_requests[0].body.len);

/* advance each time to a little before expiration, verify we get creds with the same expiration */
uint64_t eight_hundred_seconds_in_ns = aws_timestamp_convert(800, AWS_TIMESTAMP_SECS, AWS_TIMESTAMP_NANOS, NULL);
uint64_t eight_hundred_seconds_in_ns = aws_timestamp_convert(599, AWS_TIMESTAMP_SECS, AWS_TIMESTAMP_NANOS, NULL);
mock_aws_set_system_time(eight_hundred_seconds_in_ns);
mock_aws_set_high_res_time(HIGH_RES_BASE_TIME_NS + eight_hundred_seconds_in_ns);

Expand Down

0 comments on commit ce9d1e1

Please sign in to comment.