Skip to content

Commit

Permalink
Reduce zarr streaming snapshot size
Browse files Browse the repository at this point in the history
  • Loading branch information
frcroth committed Nov 11, 2024
1 parent 6b6eaaf commit 30ed5b1
Show file tree
Hide file tree
Showing 3 changed files with 87 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ test("Zarr streaming", async (t) => {
},
);
const bytes = await rawDataResponse.arrayBuffer();
const base64 = btoa(String.fromCharCode(...new Uint8Array(bytes)));
const base64 = btoa(String.fromCharCode(...new Uint8Array(bytes.slice(-128))));
t.snapshot(base64);
});

Expand All @@ -105,6 +105,6 @@ test("Zarr 3 streaming", async (t) => {
},
);
const bytes = await rawDataResponse.arrayBuffer();
const base64 = btoa(String.fromCharCode(...new Uint8Array(bytes)));
const base64 = btoa(String.fromCharCode(...new Uint8Array(bytes.slice(-128))));
t.snapshot(base64);
});

Large diffs are not rendered by default.

Binary file not shown.

0 comments on commit 30ed5b1

Please sign in to comment.