[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet-scheme] 239/324: tests/network-size: Don't let the GC close port
From: |
gnunet |
Subject: |
[gnunet-scheme] 239/324: tests/network-size: Don't let the GC close port. |
Date: |
Tue, 21 Sep 2021 13:24:39 +0200 |
This is an automated email from the git hooks/post-receive script.
maxime-devos pushed a commit to branch master
in repository gnunet-scheme.
commit d43f4efb370bace64ca79b41202615d8159bc3c7
Author: Maxime Devos <maximedevos@telenet.be>
AuthorDate: Wed Sep 8 13:47:07 2021 +0200
tests/network-size: Don't let the GC close port.
This prevents a possible test failure.
* tests/network-size.scm
(protected-against-gc): New variable.
("Client calls call-back (and sets estimates) in-order")
("likewise, without 'updated' or 'connected' (issue 4)"):
Set 'protected-against-gc'.
---
tests/network-size.scm | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/tests/network-size.scm b/tests/network-size.scm
index 50be8e6..44e6be9 100644
--- a/tests/network-size.scm
+++ b/tests/network-size.scm
@@ -118,10 +118,15 @@
,(nse:estimate:standard-deviation estimate)
,(nse:estimate:timestamp estimate)))
+(define protected-against-gc)
+
(test-equal "Client calls call-back (and sets estimates) in-order"
(list %estimates %estimates)
(call-with-services/fibers
`(("nse" . ,(lambda (port spawn-fiber)
+ ;; Make sure that the GC doesn't cause buffered messages
+ ;; to be discarded.
+ (set! protected-against-gc port)
(act-as-the-server port spawn-fiber %estimates))))
(lambda (config spawn-fiber)
(define estimates/update/reverse '())
@@ -159,6 +164,7 @@
(test-assert "likewise, without 'updated' or 'connected' (issue 4)"
(call-with-services/fibers
`(("nse" . ,(lambda (port spawn-fiber)
+ (set! protected-against-gc port)
(act-as-the-server port spawn-fiber %estimates))))
(lambda (config spawn-fiber)
(define server
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [gnunet-scheme] 191/324: doc: Document message queue error handling., (continued)
- [gnunet-scheme] 191/324: doc: Document message queue error handling., gnunet, 2021/09/21
- [gnunet-scheme] 216/324: mq: Inject errors if no appropriate message handler exists., gnunet, 2021/09/21
- [gnunet-scheme] 190/324: Correct XXX and TODO on input:regular-end-of-file., gnunet, 2021/09/21
- [gnunet-scheme] 196/324: mq-impl/stream: Stop all fibers when EOF is reached (part 1)., gnunet, 2021/09/21
- [gnunet-scheme] 201/324: tests/mq-stream: Make test more strict., gnunet, 2021/09/21
- [gnunet-scheme] 204/324: mq-impl/stream: Document implementation pitfall., gnunet, 2021/09/21
- [gnunet-scheme] 214/324: tests/mq: Use 'message-handler' macro., gnunet, 2021/09/21
- [gnunet-scheme] 217/324: tests/mq: Spam the log less., gnunet, 2021/09/21
- [gnunet-scheme] 233/324: doc: Document the message type database a little., gnunet, 2021/09/21
- [gnunet-scheme] 232/324: doc: Partially document handler procedures and interposers., gnunet, 2021/09/21
- [gnunet-scheme] 239/324: tests/network-size: Don't let the GC close port.,
gnunet <=
- [gnunet-scheme] 241/324: nse/client: Add a 'disconnected' callback., gnunet, 2021/09/21
- [gnunet-scheme] 195/324: mq-impl/stream: Reduce nesting., gnunet, 2021/09/21
- [gnunet-scheme] 200/324: mq-impl/stream: Make error injection less unobviously correct., gnunet, 2021/09/21
- [gnunet-scheme] 210/324: mq-stream: Reuse 'type' variable instead of reading the type again., gnunet, 2021/09/21
- [gnunet-scheme] 219/324: mq-impl/stream: Create the message queue as late as possible., gnunet, 2021/09/21
- [gnunet-scheme] 230/324: doc: Correct errors in ‘network structure’ section., gnunet, 2021/09/21
- [gnunet-scheme] 235/324: doc: Document how errors and received/sent messages are ordered., gnunet, 2021/09/21
- [gnunet-scheme] 199/324: guix: Use patched version of guile-fibers., gnunet, 2021/09/21
- [gnunet-scheme] 209/324: doc: Resolve the TODO about broken pipes., gnunet, 2021/09/21
- [gnunet-scheme] 213/324: nse/client: Use 'message-handler' macro., gnunet, 2021/09/21