guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 2/2] tests: Add 'prosody-service-type' test.


From: Clément Lassieur
Subject: Re: [PATCH 2/2] tests: Add 'prosody-service-type' test.
Date: Mon, 06 Feb 2017 10:48:32 +0100
User-agent: mu4e 0.9.18; emacs 25.1.91.1

> +    (define script.ft
> +      (scheme-file
> +       "script.ft"
> +       #~(begin
> +           (define (handle-received-message time from nickname message)
> +             (if (equal? message #$message)
> +                 (ft-quit 0)
> +                 (ft-quit 1)))
> +           (add-hook! ft-message-receive-hook handle-received-message)
> +
> +           (ft-set-jid! #$jid)
> +           (ft-set-password! #$password)
> +           (ft-set-server! #$server)
> +           (ft-set-port! #$port)
> +           (ft-set-sslconn! #f)
> +           (ft-connect-blocking)
> +           (ft-send-message #$jid #$message)
> +           (ft-main-loop))))

Maybe I should add a timeout somewhere, so the test doesn't wait forever
if the message is not actually received.  WDYT?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]