Skip to content

Commit

Permalink
fix(test): serializeNulls for consistency between Cached and non-cach…
Browse files Browse the repository at this point in the history
…e versions

This is because when reading from the container with no cache, you get `null` but when writing/reading with the cache, the value is `JsonNull`.
  • Loading branch information
cmhulbert committed Jun 6, 2024
1 parent 124c75d commit 88a88ff
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -778,7 +778,7 @@ public void testAttributes() {
public void testAttributeMapping() {

// attribute mapping on by default
try (final N5Writer n5 = createTempN5Writer()) {
try (final N5Writer n5 = createTempN5Writer(tempN5Location(), new GsonBuilder().serializeNulls())) {

n5.createDataset(datasetName, dimensions, blockSize, DataType.UINT64, getCompressions()[0]);

Expand Down

0 comments on commit 88a88ff

Please sign in to comment.