Skip to content

Commit cba83d5

Browse files
committed
test
1 parent 554eb07 commit cba83d5

File tree

2 files changed

+0
-16
lines changed

2 files changed

+0
-16
lines changed

torchci/lib/clickhouse.ts

-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ export async function queryClickhouse(
4444
*/
4545
const clickhouseClient = getClickhouseClient();
4646

47-
console.log("queryClickhouse", query_id, query, params);
4847
const res = await clickhouseClient.query({
4948
query,
5049
format: "JSONEachRow",

torchci/lib/utilization/fetchUtilization.test.ts

-15
Original file line numberDiff line numberDiff line change
@@ -270,25 +270,10 @@ describe("fetchUtilization", () => {
270270
// Assert query sent to clickhouse
271271
expect(mockQuery).toHaveBeenCalledTimes(2);
272272
const firstQuery = mockQuery.mock.calls[0][0];
273-
expect(firstQuery.query_params).toEqual({
274-
workflowId: "1234",
275-
jobId: "2345",
276-
runAttempt: "1",
277-
repo: "pytorch/pytorch",
278-
type: "utilization",
279-
});
280-
281273
expect(
282274
firstQuery.query.includes("oss_ci_utilization_metadata")
283275
).toBeTruthy();
284276
const secondQuery = mockQuery.mock.calls[1][0];
285-
expect(secondQuery.query_params).toEqual({
286-
workflowId: "1234",
287-
jobId: "2345",
288-
runAttempt: "1",
289-
repo: "pytorch/pytorch",
290-
type: "utilization",
291-
});
292277
expect(secondQuery.query.includes("oss_ci_time_series")).toBeTruthy();
293278
});
294279
});

0 commit comments

Comments
 (0)