summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/src/expand.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/src/expand.c b/src/src/expand.c
index ff30996a9..b02ea30a2 100644
--- a/src/src/expand.c
+++ b/src/src/expand.c
@@ -4667,6 +4667,9 @@ while (*s != 0)
DEBUG(D_expand) debug_printf("connected to socket %s\n", sub_arg[0]);
+ /* Allow sequencing of test actions */
+ if (running_in_test_harness) millisleep(100);
+
/* Write the request string, if not empty */
if (sub_arg[1][0] != 0)
@@ -4690,6 +4693,8 @@ while (*s != 0)
shutdown(fd, SHUT_WR);
#endif
+ if (running_in_test_harness) millisleep(100);
+
/* Now we need to read from the socket, under a timeout. The function
that reads a file can be used. */