Skip to content

Commit c7a55bf

Browse files
committed
using local file for out of memory test
1 parent 9ef05b5 commit c7a55bf

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

.github/workflows/test_setup.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
strategy:
99
matrix:
1010
os: [ubuntu-latest, windows-latest, macos-14]
11-
matlab-version: ['R2024a', 'R2024b']
11+
matlab-version: ['R2024a']
1212

1313
steps:
1414
- name: Checkout code

test/tZarrRead.m

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,11 +113,10 @@ function tooBigArray(testcase)
113113
% Verify zarrread error when a user tries to read data that is
114114
% too large
115115

116-
testcase.assumeFalse(isMATLABReleaseOlderThan('R2024b'),...
117-
"Remote workflows are fully supported only from R2024b")
116+
bigDataPath = "bigData/myzarr";
117+
zarrcreate(bigDataPath, [100000,100000], Datatype='single');
118118
errID = 'MATLAB:Zarr:OutOfMemory';
119-
bigData = 'https://noaa-nwm-retro-v2-zarr-pds.s3.amazonaws.com/elevation/';
120-
testcase.verifyError(@()zarrread(bigData,Count=[100000,100000]),errID);
119+
testcase.verifyError(@()zarrread(bigDataPath),errID);
121120
end
122121

123122
function invalidFilePath(testcase)

0 commit comments

Comments
 (0)