Skip to content

Commit

Permalink
[RLlib] Fix CI test: test_io.py. (#45839)
Browse files Browse the repository at this point in the history
  • Loading branch information
sven1977 authored Jun 11, 2024
1 parent 94937a1 commit 81e7ff8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rllib/tests/test_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,9 +263,9 @@ def input_creator(ioctx: IOContext) -> InputReader:
config.offline_data(input_config={"input_files": self.test_dir + fw})
algo = config.build()
result = algo.train()
self.assertEqual(result[f"{NUM_ENV_STEPS_SAMPLED_LIFETIME}"], 4000)
self.assertEqual(result[NUM_ENV_STEPS_SAMPLED_LIFETIME], 4000)
self.assertTrue(
np.isnan(result[f"{ENV_RUNNER_RESULTS}/{EPISODE_RETURN_MEAN}"])
np.isnan(result[ENV_RUNNER_RESULTS][EPISODE_RETURN_MEAN])
)
algo.stop()

Expand Down

0 comments on commit 81e7ff8

Please sign in to comment.