proxy: add tests for batch http sql (#4793)

This PR adds an integration test case for batch HTTP SQL endpoint.
https://github.com/neondatabase/neon/pull/4654/ should be merged first
before we land this PR.

---------

Signed-off-by: Alex Chi Z <chi@neon.tech>
This commit is contained in:
Alex Chi Z
2023-07-25 11:08:24 -04:00
committed by GitHub
parent 6d023484ed
commit bcc2aee704
2 changed files with 53 additions and 2 deletions

View File

@@ -223,7 +223,7 @@ pub async fn handle(
}
}
transaction.commit().await?;
Ok(Value::Array(results))
Ok(json!({ "results": results }))
}
};