Commit 25c8fd1
committed
test/tap/tests: drain in-flight monitor cycle in pgsql-servers_ssl_params-t
The test samples PgSQL_Monitor_ssl_connections_OK immediately after
LOAD PGSQL SERVERS TO RUNTIME, then sleeps 5s and checks the counter
did not advance (TLSv1 pin should have broken SSL). A monitor connect
cycle scheduled with the OLD params can land AFTER ok_before is taken
but BEFORE the sleep, succeeding and falsely bumping the counter.
Poll for two consecutive equal 1s samples so ok_before is recorded
after the new config has taken effect and the counter has plateaued.1 parent 96c686d commit 25c8fd1
1 file changed
Lines changed: 13 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
499 | 499 | | |
500 | 500 | | |
501 | 501 | | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
502 | 508 | | |
503 | | - | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
504 | 516 | | |
505 | 517 | | |
506 | 518 | | |
| |||
0 commit comments