Skip to content

Commit

Permalink
accept all error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
mmomtchev committed Dec 3, 2024
1 parent 32886c4 commit 3dc1f9f
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions test/api_rasterband-async.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -546,15 +546,9 @@ describe('gdal.RasterBandAsync', () => {
const file = `/vsimem/write_threadSafe_test.${String(
Math.random()
).substring(2)}.tmp.tif`
if (semver.gte(gdal.version, '3.10.0')) {
assert.throws(() => {
gdal.open(file, 'r+t', 'GTiff', 64, 64, 1, gdal.GDT_Byte)
})
} else {
assert.throws(() => {
gdal.open(file, 'r+t', 'GTiff', 64, 64, 1, gdal.GDT_Byte)
}, /requires GDAL 3.10/)
}
assert.throws(() => {
gdal.open(file, 'r+t', 'GTiff', 64, 64, 1, gdal.GDT_Byte)
})
})
it('should support reading in threadsafe mode with GDAL >= 3.10', function () {
if (semver.gte(gdal.version, '3.10.0')) {
Expand Down

0 comments on commit 3dc1f9f

Please sign in to comment.