File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
packages/middleware-sdk-s3/src/s3-express/classes Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 1
1
import { S3ExpressIdentityProviderImpl } from "./S3ExpressIdentityProviderImpl" ;
2
2
3
3
describe ( S3ExpressIdentityProviderImpl . name , ( ) => {
4
+ const timestamp = Date . now ( ) + 90_000 ;
5
+
4
6
const Credentials = {
5
7
AccessKeyId : "MOCK_S3_EXPRESS_ACCESS_KEY_ID" ,
6
8
SecretAccessKey : "MOCK_S3_EXPRESS_SECRET_ACCESS_KEY" ,
7
9
SessionToken : "MOCK_S3_EXPRESS_SESSION_TOKEN" ,
8
- Expiration : new Date ( Date . now ( ) + 90_000 ) ,
10
+ Expiration : new Date ( timestamp ) ,
9
11
} ;
10
12
11
13
const s3ExpressCredentials = {
12
14
accessKeyId : "MOCK_S3_EXPRESS_ACCESS_KEY_ID" ,
13
15
secretAccessKey : "MOCK_S3_EXPRESS_SECRET_ACCESS_KEY" ,
14
16
sessionToken : "MOCK_S3_EXPRESS_SESSION_TOKEN" ,
15
- expiration : new Date ( Date . now ( ) + 90_000 ) ,
17
+ expiration : new Date ( timestamp ) ,
16
18
} ;
17
19
18
20
describe ( S3ExpressIdentityProviderImpl . prototype . getS3ExpressIdentity . name , ( ) => {
You can’t perform that action at this time.
0 commit comments