Page MenuHomePhabricator

test-bad-http-server: introduce sock closing when writing a pattern
ClosedPublic

Authored by marmoute on Jan 24 2022, 9:46 AM.

Details

Summary

Instead of using a fixed number a bytes, a very unstable method. We introduce a
new config that can define a regex. One this regex is detected, nothing after
it will be written and the socket will be closed.

Tests will be migrated to this new method in later changesets.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

marmoute created this revision.Jan 24 2022, 9:46 AM
Alphare accepted this revision.Jan 24 2022, 10:15 AM
This revision is now accepted and ready to land.Jan 24 2022, 10:15 AM
baymax updated this revision to Diff 31873.Jan 24 2022, 1:17 PM

✅ refresh by Heptapod after a successful CI run (🐙 💚)