diff options
author | Andrew J. Schorr <aschorr@telemetry-investments.com> | 2019-02-17 10:14:09 -0500 |
---|---|---|
committer | Andrew J. Schorr <aschorr@telemetry-investments.com> | 2019-02-17 10:14:09 -0500 |
commit | 708196dcbb974209f586a749ef6045c8c3039e1c (patch) | |
tree | f2ae4c14d7ef078372e0abeff02e3daa56002100 /test | |
parent | 028c972a224ea2d6e1e7ed61f12553e95e695e1d (diff) | |
download | egawk-708196dcbb974209f586a749ef6045c8c3039e1c.tar.gz egawk-708196dcbb974209f586a749ef6045c8c3039e1c.tar.bz2 egawk-708196dcbb974209f586a749ef6045c8c3039e1c.zip |
Tweak timeout test to reduce likelihood of failure.
Diffstat (limited to 'test')
-rw-r--r-- | test/ChangeLog | 6 | ||||
-rw-r--r-- | test/timeout.awk | 2 | ||||
-rw-r--r-- | test/timeout.ok | 1 |
3 files changed, 7 insertions, 2 deletions
diff --git a/test/ChangeLog b/test/ChangeLog index 5b6fd3b6..173832d7 100644 --- a/test/ChangeLog +++ b/test/ChangeLog @@ -1,3 +1,9 @@ +2019-02-17 Andrew J. Schorr <aschorr@telemetry-investments.com> + + * timeout.awk, timeout.ok: Increase READ_TIMEOUT to 400 to increase + the scheduler margin of error from 100 ms to 200 ms to reduce the + likelihood of spurious test failures. + 2019-02-15 Arnold D. Robbins <arnold@skeeve.com> * profile11.ok: Updated after code fix. diff --git a/test/timeout.awk b/test/timeout.awk index ccf4537d..ba6d87b2 100644 --- a/test/timeout.awk +++ b/test/timeout.awk @@ -2,7 +2,7 @@ BEGIN { cmd = "echo hello; sleep 1; echo goodbye" print "With timeouts" - PROCINFO[cmd, "READ_TIMEOUT"] = 300 + PROCINFO[cmd, "READ_TIMEOUT"] = 400 while ((rc = (cmd | getline x)) > 0) print x if (rc < 0) diff --git a/test/timeout.ok b/test/timeout.ok index a388747b..f1d791b1 100644 --- a/test/timeout.ok +++ b/test/timeout.ok @@ -7,6 +7,5 @@ With timeouts and retries hello 1 timed out; trying again 2 timed out; trying again -3 timed out; trying again goodbye 0 |