Commit f60aa9f
committed
[yugabyte#24420] YSQL: Fix the NoWaitForRPCOnTermination unit test
Summary:
The `NoWaitForRPCOnTermination` unit test expects that connection will be closed while query processing. The test checks that raised error will have particular message `terminating connection due to administrator command`. This error message with this substring is really logged by postgres in logs, but the postgres process may not sent it to the user. It may just close the connection. As a result client may only detect general connection close error.
Solution: rework the check that connection was closed.
Jira: DB-13330
Test Plan:
Run existing unit test
```
./yb_build.sh --gtest_filter PgMiniTest.NoWaitForRPCOnTermination
```
Reviewers: pjain, jason, kramanathan
Reviewed By: kramanathan
Subscribers: yql
Tags: #jenkins-ready
Differential Revision: https://phorge.dev.yugabyte.com/D390051 parent 82d5a82 commit f60aa9f
1 file changed
+9
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2175 | 2175 | | |
2176 | 2176 | | |
2177 | 2177 | | |
2178 | | - | |
2179 | | - | |
2180 | | - | |
2181 | | - | |
2182 | | - | |
| 2178 | + | |
2183 | 2179 | | |
2184 | 2180 | | |
2185 | 2181 | | |
| |||
2192 | 2188 | | |
2193 | 2189 | | |
2194 | 2190 | | |
2195 | | - | |
2196 | | - | |
2197 | | - | |
2198 | | - | |
2199 | | - | |
| 2191 | + | |
| 2192 | + | |
| 2193 | + | |
| 2194 | + | |
| 2195 | + | |
| 2196 | + | |
2200 | 2197 | | |
2201 | 2198 | | |
2202 | 2199 | | |
| |||
2206 | 2203 | | |
2207 | 2204 | | |
2208 | 2205 | | |
2209 | | - | |
2210 | | - | |
| 2206 | + | |
| 2207 | + | |
2211 | 2208 | | |
2212 | 2209 | | |
2213 | 2210 | | |
| |||
0 commit comments