Skip to content

Commit

Permalink
Sort results in unit test before comparison (#3088)
Browse files Browse the repository at this point in the history
  • Loading branch information
npauzenga authored Aug 24, 2022
1 parent a77de66 commit 7b22d15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/api/tests/lib/writeRecords/test-write-granules.js
Original file line number Diff line number Diff line change
Expand Up @@ -577,8 +577,8 @@ test.serial('writeGranulesFromMessage() removes preexisting granule file from po
);

t.deepEqual(
existingPgFiles.map((file) => file.bucket).concat(filesFromCumulusMessage),
updatedPgFiles.map((file) => file.bucket)
existingPgFiles.map((file) => file.bucket).concat(filesFromCumulusMessage).sort(),
updatedPgFiles.map((file) => file.bucket).sort()
);
});

Expand Down

0 comments on commit 7b22d15

Please sign in to comment.