TESTS: Tweak timeout test settings

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
libnfs-4.0.0-vitalif
Ronnie Sahlberg 2017-07-08 15:00:23 +10:00
parent 5a6865c7ab
commit 8df917633d
2 changed files with 3 additions and 3 deletions

View File

@ -54,8 +54,8 @@ int rpc_service(struct rpc_context *rpc, int revents)
call_idx++;
if (call_idx >= timeout_start) {
PRINTF("sleep for 2 seconds causing a timeout");
sleep(2);
PRINTF("sleep for 1 seconds causing a timeout");
sleep(1);
/* Strip off all the POLLINs so that we will not try
* to process them in rpc_service and instead fall-through
* to the rpc_timeout_scan() and handle the PDUs there

View File

@ -53,7 +53,7 @@ int main(int argc, char *argv[])
exit(1);
}
nfs_set_timeout(nfs, 1000);
nfs_set_timeout(nfs, 300);
url = nfs_parse_url_full(nfs, argv[1]);
if (url == NULL) {