Skip to content

Commit

Permalink
Merge pull request #899 from slowder:slowder_fix_test_assertion
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 591140634
Change-Id: I1b63d8122b488fb8e730087190b51ba498132392
  • Loading branch information
copybara-github committed Dec 15, 2023
2 parents c8a7175 + f71b584 commit 7ef0d3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tf_agents/environments/wrappers_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ def test_fixed_length(self):
time_step = env.step(np.array(1, dtype=np.int32))
num_steps += 1
# Verify episode length.
self.assertTrue(num_steps, env.fix_length)
self.assertEqual(num_steps, env.fix_length + 1)

# it should automatically reset.
self.assertTrue(time_step.is_first())
Expand Down

0 comments on commit 7ef0d3b

Please sign in to comment.