Skip to content

Commit 544a921

Browse files
Test fixes...
Signed-off-by: Aayush Chouhan <[email protected]>
1 parent 6da37c0 commit 544a921

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/test/unit_tests/util_functions_tests/signature_test_suite/awscli/awscli_iwgdisgt.sreq

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
PUT /files/util/mongo_utils.js HTTP/1.1
22
Host: 127.0.0.1
33
Accept-Encoding: identity
4-
Content-Length: 5865
5-
Content-MD5: lUCXsCayypL6JVFjbf9kAg==
4+
Content-Length: 5887
5+
Content-MD5: r1I35pZpZXxuljKcjcoZyw==
66
Expect: 100-continue
77
Date: Thu, 08 Dec 2016 13:02:39 GMT
88
User-Agent: aws-cli/1.11.26 Python/2.7.10 Darwin/16.1.0 botocore/1.4.83
99
Content-Type: application/javascript
10-
Authorization: AWS 123:Zy/+Do9VcaCZcfdno7lXzjw6qHM=
10+
Authorization: AWS 123:WW4i8kUV00kNk2QRoBXPxn6tGi4=
1111

1212
'use strict';
1313

src/util/mongo_utils.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@
159159
// }
160160

161161
function is_object_id(id, generate = false) {
162-
const ERROR_MSG = 'Argument passed must be a single string of 12 bytes or a string of 24 hex characters';
162+
const err_msg = 'Argument passed must be a string of 24 hex characters';
163163

164164
if (id === null || id === undefined) {
165165
return generate ? mongoObjectId() : false;
@@ -181,7 +181,7 @@ function is_object_id(id, generate = false) {
181181
return generate ? hex_string.toLowerCase() : true;
182182
}
183183

184-
if (generate) throw new Error(ERROR_MSG);
184+
if (generate) throw new Error(err_msg);
185185
return false;
186186
}
187187

0 commit comments

Comments
 (0)