Skip to content

Commit bd61844

Browse files
frozencemeteryDirectXMan12
authored andcommitted
[tests] Allow clockskew in server context expiration time check
krb5 >= 1.14 adds the clockskew to the server context lifetime. Allow this behavior in test_high_level.py.
1 parent 8fc0029 commit bd61844

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

gssapi/tests/test_high_level.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,8 @@ 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+
# KDC may allow for clockskew by increasing acceptor context lifetime
655+
server_ctx.lifetime.should_be_at_most(400 + 300)
655656
server_ctx.initiator_name.should_be(client_ctx.initiator_name)
656657
server_ctx.mech.should_be_a(gb.OID)
657658
server_ctx.actual_flags.should_be_a(gb.IntEnumFlagSet)

0 commit comments

Comments
 (0)