Skip to content

Commit

Permalink
fix(datastore): Make ds tests run on M1 by using uuid for randomness (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
stocaaro authored Nov 21, 2023
1 parent cdb267e commit 4e12ec9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/datastore/__tests__/commonAdapterTests.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ulid } from 'ulid';
import { v4 as uuid } from 'uuid';

import {
DataStore as DataStoreType,
Expand Down Expand Up @@ -1060,10 +1060,10 @@ export function addCommonQueryTests({
if (fkFields.has(field)) continue;
switch (def.type) {
case 'ID':
initializer[field] = ulid();
initializer[field] = uuid();
break;
case 'String':
initializer[field] = `some random content ${ulid()}`;
initializer[field] = `some random content ${uuid()}`;
break;
case 'Int':
initializer[field] =
Expand Down

0 comments on commit 4e12ec9

Please sign in to comment.