Skip to content

Commit

Permalink
Merge pull request #7592 from hashicorp/b-ui/csi-flaky-test
Browse files Browse the repository at this point in the history
UI: Fix flaky Volume serializer test
  • Loading branch information
DingoEatingFuzz committed Apr 2, 2020
2 parents ab8c0e7 + f6ed101 commit dae5c3f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ui/tests/unit/serializers/volume-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ module('Unit | Serializer | Volume', function(hooks) {
this.subject = () => this.store.serializerFor('volume');
});

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

const normalizationTestCases = [
{
Expand Down

0 comments on commit dae5c3f

Please sign in to comment.