Skip to content

Commit

Permalink
fix: cli -- collection run -- clone request item at start (#3760)
Browse files Browse the repository at this point in the history
  • Loading branch information
lohxt1 authored Jan 8, 2025
1 parent 96d6bf1 commit 3cb15fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/bruno-cli/src/commands/run.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const fs = require('fs');
const chalk = require('chalk');
const path = require('path');
const { forOwn } = require('lodash');
const { forOwn, cloneDeep } = require('lodash');
const { exists, isFile, isDirectory } = require('../utils/filesystem');
const { runSingleRequest } = require('../runner/run-single-request');
const { bruToEnvJson, getEnvVars } = require('../utils/bru');
Expand Down Expand Up @@ -637,7 +637,7 @@ const handler = async function (argv) {
let currentRequestIndex = 0;
let nJumps = 0; // count the number of jumps to avoid infinite loops
while (currentRequestIndex < bruJsons.length) {
const iter = bruJsons[currentRequestIndex];
const iter = cloneDeep(bruJsons[currentRequestIndex]);
const { bruFilepath, bruJson } = iter;

const start = process.hrtime();
Expand Down

0 comments on commit 3cb15fc

Please sign in to comment.