Commit 6547ca7
committed
Fix a couple of intermittent test failures for the MySQL client (#1658)
* Fix intermittent MySQLConnectionTest#testInflightCommandsFailWhenConnectionClosed failure
The process info should match the sleep query that was executed.
Signed-off-by: Thomas Segismont <tsegismont@gmail.com>
* Fix intermittent MySQLUnixDomainSocketTest.connectWithVertxInstance failure
Manage the dedicated Vert.x and Pool instance separately from the object instances.
Otherwise, the dedicated Vert.x instance is closed asynchronously and then the client stored in the fields cannot be properly closed in the tear down method.
Signed-off-by: Thomas Segismont <tsegismont@gmail.com>
---------
Signed-off-by: Thomas Segismont <tsegismont@gmail.com>1 parent 6fd8a9f commit 6547ca7
File tree
2 files changed
+12
-4
lines changed- vertx-mysql-client/src/test/java/io/vertx/mysqlclient
2 files changed
+12
-4
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
| 87 | + | |
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| |||
Lines changed: 11 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| 19 | + | |
18 | 20 | | |
19 | 21 | | |
20 | 22 | | |
| |||
81 | 83 | | |
82 | 84 | | |
83 | 85 | | |
| 86 | + | |
84 | 87 | | |
85 | | - | |
| 88 | + | |
86 | 89 | | |
87 | | - | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
88 | 93 | | |
89 | 94 | | |
90 | 95 | | |
91 | 96 | | |
92 | 97 | | |
93 | | - | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
94 | 102 | | |
95 | 103 | | |
96 | 104 | | |
| |||
0 commit comments