Commit b4cae47
fix(es): add delay in TestPasswordFromFile to prevent flakiness
The ES client has background health check goroutines that may continue
running briefly after Close() is called. When the password changes and
a new client is created, the old client is closed but its health check
may still make requests with the old password.
This adds a small delay after the client changes to allow the old
client's background goroutines to fully shut down before the test
proceeds to verify the new password.
Fixes #4743
Signed-off-by: root <root@C20251020184286.local>1 parent ae8709f commit b4cae47
1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
428 | 428 | | |
429 | 429 | | |
430 | 430 | | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
431 | 437 | | |
432 | 438 | | |
433 | 439 | | |
| |||
0 commit comments