This PR fixes the failing TDS test TestStationFcOpenFiles::checkFeatureTypePointWithMissing. This test fails when run after another test that uses the same file, since the GempakFileReader has its own copy of a RandomAccessFile which does not get properly closed and reacquired when the cache is cleared between the tests.
This PR closes/reaquires the GempakFileReader's RandomAccessFile. Another solution would be for it to not have its own RandomAccessFile member, but refer to that of the IOSP-- let me know if you prefer that one. It is probably not hard but I think there need to be new constructors for the GempakFileReader and so it seemed to require a few more changes in different places.
Description of Changes
This PR fixes the failing TDS test
TestStationFcOpenFiles::checkFeatureTypePointWithMissing
. This test fails when run after another test that uses the same file, since theGempakFileReader
has its own copy of aRandomAccessFile
which does not get properly closed and reacquired when the cache is cleared between the tests.This PR closes/reaquires the
GempakFileReader
'sRandomAccessFile
. Another solution would be for it to not have its ownRandomAccessFile
member, but refer to that of the IOSP-- let me know if you prefer that one. It is probably not hard but I think there need to be new constructors for theGempakFileReader
and so it seemed to require a few more changes in different places.PR Checklist