[RLlib] Test output length in DatasetReader with default IOContext. (#26852)

This commit is contained in:
Rohan Potdar 2022-07-23 04:53:59 -07:00 committed by GitHub
parent 2cfd6c2e97
commit 69f6b843da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -139,7 +139,8 @@ class TestDatasetReader(unittest.TestCase):
{"input": "dataset", "input_config": input_config} {"input": "dataset", "input_config": input_config}
) )
reader = DatasetReader(dataset) reader = DatasetReader(dataset)
reader.next() # Reads in one line of Pendulum dataset with 600 timesteps
assert len(reader.next()) == 600
class TestUnzipIfNeeded(unittest.TestCase): class TestUnzipIfNeeded(unittest.TestCase):