Skip to content

Commit

Permalink
fix: update sdk to add testSet to dedupData as well (#116)
Browse files Browse the repository at this point in the history
Signed-off-by: Pranshu Srivastava <iampranshu24@gmail.com>
  • Loading branch information
PranshuSrivastava authored Jul 23, 2024
1 parent 27b2bf3 commit a063214
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion v2/dedup/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,15 @@ export default function middleware(): (req: Request, res: Response, next: NextFu

export function afterMiddleware(req: Request, res: Response) {
let id = req.get("KEPLOY-TEST-ID");
let testSet = req.get("KEPLOY-TEST-SET-ID");
if (!id) {
console.error("No test ID found in the request headers");
return;
}
let executedLinesByFile = GetCoverage();

let currentData = {
id: id,
id: testSet + "/" + id,
executedLinesByFile: executedLinesByFile
};

Expand Down

0 comments on commit a063214

Please sign in to comment.