TESTS: Tweak timeout test settings
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>libnfs-4.0.0-vitalif
parent
5a6865c7ab
commit
8df917633d
|
@ -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
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue