|
44 | 44 | \q |
45 | 45 | )); |
46 | 46 |
|
47 | | -# Wait until the backend is in the timeout injection point. Will get an error |
| 47 | +# Wait until the backend enters the timeout injection point. Will get an error |
48 | 48 | # here if anything goes wrong. |
49 | 49 | $node->wait_for_event('client backend', 'transaction-timeout'); |
50 | 50 |
|
|
58 | 58 | $node->wait_for_log('terminating connection due to transaction timeout', |
59 | 59 | $log_offset); |
60 | 60 |
|
61 | | -# If we send \q with $psql_session->quit it can get to pump already closed. |
62 | | -# So \q is in initial script, here we only finish IPC::Run. |
| 61 | +# If we send \q with $psql_session->quit the command can be sent to the session |
| 62 | +# already closed. So \q is in initial script, here we only finish IPC::Run. |
63 | 63 | $psql_session->{run}->finish; |
64 | 64 |
|
65 | 65 |
|
66 | 66 | # |
67 | | -# 2. Test of the sidle in transaction timeout |
| 67 | +# 2. Test of the idle in transaction timeout |
68 | 68 | # |
69 | 69 |
|
70 | 70 | $node->safe_psql('postgres', |
|
80 | 80 | BEGIN; |
81 | 81 | )); |
82 | 82 |
|
83 | | -# Wait until the backend is in the timeout injection point. |
| 83 | +# Wait until the backend enters the timeout injection point. |
84 | 84 | $node->wait_for_event('client backend', |
85 | 85 | 'idle-in-transaction-session-timeout'); |
86 | 86 |
|
|
111 | 111 | SET idle_session_timeout to '10ms'; |
112 | 112 | )); |
113 | 113 |
|
114 | | -# Wait until the backend is in the timeout injection point. |
| 114 | +# Wait until the backend enters the timeout injection point. |
115 | 115 | $node->wait_for_event('client backend', 'idle-session-timeout'); |
116 | 116 |
|
117 | 117 | $log_offset = -s $node->logfile; |
|
0 commit comments