Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kv: fix assertion in TestProxyTracing
This commit fixes the assertion in TestProxyTracing so that the test will fail if request proxying is not working as expected. The test was fooling itself, expecting QueryRowContext to return a nil Row if no matching trace event was found. This is not the case, as a nil Row is never returned. Instead, Row.Scan returns ErrNoRows if no matching row is found. Also, the query wasn't even running because it was passing the last line of the query string in as a parameter, leading to the error: "pq: got 1 parameters but the statement requires 0". I confirmed that before this change, the test passes even with request proxying disabled. After this change, the test fails. Epic: None Release note: None
- Loading branch information