Skip to content

Commit a719d3e

Browse files
[tests] Allow clockskew in server context expiration time check
krb5 in newer versions adds the clockskew to the server context lifetime, which is permitted by RFC. Allow this behavior in test_high_level.py.
1 parent b39fa50 commit a719d3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gssapi/tests/test_high_level.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,7 @@ def test_complete_on_partially_completed(self):
651651
def test_initiate_accept_steps(self):
652652
client_ctx, server_ctx = self._create_completed_contexts()
653653

654-
server_ctx.lifetime.should_be_at_most(400)
654+
server_ctx.lifetime.should_be_at_most(400 + 300) # clockskew
655655
server_ctx.initiator_name.should_be(client_ctx.initiator_name)
656656
server_ctx.mech.should_be_a(gb.OID)
657657
server_ctx.actual_flags.should_be_a(gb.IntEnumFlagSet)

0 commit comments

Comments
 (0)