Commit 2ec94649 authored by Ignacio Casal Quinteiro's avatar Ignacio Casal Quinteiro Committed by Claudio Saavedra

auth-test: use g_usleep

Instead of using a Windows specific define.
parent 79a9c407
Pipeline #121422 passed with stage
in 1 minute and 32 seconds
......@@ -5,13 +5,6 @@
static const char *base_uri;
static GMainLoop *loop;
#if defined (G_OS_WIN32) && defined (_MSC_VER)
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#define sleep(x) Sleep (x * 1000)
#endif
typedef struct {
/* Explanation of what you should see */
const char *explanation;
......@@ -471,12 +464,12 @@ do_digest_expiration_test (void)
uri = g_strconcat (base_uri, "Digest/realm1/", NULL);
do_digest_nonce_test (session, "First", uri, TRUE, TRUE, TRUE);
g_free (uri);
sleep (2);
g_usleep (2 * G_USEC_PER_SEC);
uri = g_strconcat (base_uri, "Digest/realm1/expire/", NULL);
do_digest_nonce_test (session, "Second", uri, TRUE, TRUE, FALSE);
sleep (1);
g_usleep (1 * G_USEC_PER_SEC);
do_digest_nonce_test (session, "Third", uri, TRUE, FALSE, FALSE);
sleep (1);
g_usleep (1 * G_USEC_PER_SEC);
do_digest_nonce_test (session, "Fourth", uri, TRUE, FALSE, FALSE);
g_free (uri);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment