Make x509 unittest testClockSkew a bit less flaky
authorIustin Pop <iustin@google.com>
Mon, 14 May 2012 09:33:04 +0000 (11:33 +0200)
committerIustin Pop <iustin@google.com>
Mon, 14 May 2012 09:37:28 +0000 (11:37 +0200)
commit302424e71a4a65b4ffddf2de9bf7fa88b28e9e92
tree0cd62e950040c1668dd73a67c4ea06e77c22e11f
parent216d23c0bb47d312edb654cecdce3b5489f2e59f
Make x509 unittest testClockSkew a bit less flaky

Since the tested function actually uses time.time(), it cannot be make
fully stable, but 1 second is very dangerous; let's just test SKEW * 2
and higher since that should be good (if the delta between _GenCert
and VerifyX509Certificate is 5 minutes, then…).

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: RenĂ© Nussbaumer <rn@google.com>
test/ganeti.utils.x509_unittest.py