Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
yangw-dev committed Jan 31, 2025
1 parent 9d2953d commit 15d6f2b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions torchci/lib/clickhouse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ export async function queryClickhouse(
* @param params: Record<string, unknown>, the parameters to the query ex { sha: "abcd" }
*/
const clickhouseClient = getClickhouseClient();

console.log("queryClickhouse", query_id, query, params)
const res = await clickhouseClient.query({
query,
format: "JSONEachRow",
Expand Down
1 change: 0 additions & 1 deletion torchci/lib/utilization/fetchUtilization.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,6 @@ describe("fetchUtilization", () => {

// Assert query sent to clickhouse
expect(mockQuery).toHaveBeenCalledTimes(2);
console.log(mockQuery.mock.calls);
const firstQuery = mockQuery.mock.calls[0][0];
expect(firstQuery.query_params).toEqual({
workflowId: "1234",
Expand Down

0 comments on commit 15d6f2b

Please sign in to comment.