GNU bug report logs -
#53389
[PATCH 0/9] Replace some mocking with with-http-server*, avoid hardcoding ports,
Previous Next
Full log
Message #65 received at 53389 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Ludovic Courtès schreef op ma 07-02-2022 om 10:53 [+0100]:
> Hi,
>
> Maxime Devos <maximedevos <at> telenet.be> skribis:
>
> > Ludovic Courtès schreef op za 22-01-2022 om 17:48 [+0100]:
> > > > + (unless keep-lingering?
> > > > + ;; exit the server thread
> > > > + (system-async-mark (lambda () (throw 'quit)) server))
> > >
> > > When do we need ‘keep-lingering?’?
> >
> > In tests/challenge.scm (call-mismatch-test), due to how the store monad
> > work, the thunk technically returns (*) before we are done with the
> > querying the server. Perhaps this can be resolved with sufficient
> > monadology, but I don't quite see how.
> >
> > (*) a monadic value.
>
> How about fixing it locally like this:
>
> That way we don’t need to keep the lingering variant in (guix tests
> http).
>
> WDYT?
Looks nice, though it isn't ideal that port 9000/9001 is hardcoded
here. That can be left as an exercise for later though. I'll do this
in the v2 (and remove keep-lingering?) whenever I get around to writing
the v2 (I'm mostly doing Scheme-GNUnet stuff at the moment).
Greetings,
Maaxime.
[signature.asc (application/pgp-signature, inline)]
This bug report was last modified 3 years and 54 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.