Skip to content

Commit dae5c3f

Browse files
Merge pull request #7592 from hashicorp/b-ui/csi-flaky-test
UI: Fix flaky Volume serializer test
2 parents ab8c0e7 + f6ed101 commit dae5c3f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ui/tests/unit/serializers/volume-test.js

+3
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@ module('Unit | Serializer | Volume', function(hooks) {
99
this.subject = () => this.store.serializerFor('volume');
1010
});
1111

12+
// Set the milliseconds to avoid possible floating point precision
13+
// issue that arises from converting to nanos and back.
1214
const REF_DATE = new Date();
15+
REF_DATE.setMilliseconds(0);
1316

1417
const normalizationTestCases = [
1518
{

0 commit comments

Comments
 (0)