Fix unit test api_version to enable api_version 2 (#4785)

The command line API still uses `apiMaximumSupportedVersion`.
The unit test RPCs use `apiMinimumSupportedVersion` if unspecified.

Context:
- #4568
- #4552
This commit is contained in:
pwang200
2023-11-02 12:59:19 -04:00
committed by GitHub
parent 85342b21c8
commit 056255e396
6 changed files with 68 additions and 40 deletions

View File

@@ -463,7 +463,13 @@ Env::do_rpc(
std::vector<std::string> const& args,
std::unordered_map<std::string, std::string> const& headers)
{
return rpcClient(args, app().config(), app().logs(), headers).second;
return rpcClient(
args,
app().config(),
app().logs(),
RPC::apiMaximumSupportedVersion,
headers)
.second;
}
void