Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
proxy: fix flaky TestAuditLogging (#2575)
The TestAuditLogging could flake because it checks audit log after receiving response message from the connection which may happen before write to audit log by io.MultiWriter has finished. It could be reproduced via: ``` go test ./proxy -run=TestAuditLogging -count=10000 -failfast ``` This change writes to auditLog before writing to the connection which also would show failed message in the audit log in case write to connection fails. Fixes #2572 Signed-off-by: Alexander Yastrebov <[email protected]>
- Loading branch information