mirror of
https://github.com/usebruno/bruno.git
synced 2025-01-11 16:38:19 +01:00
Merge pull request #395 from dozed/fix-show-response-time
Put constant in outer scope
This commit is contained in:
commit
efbc119e7c
@ -123,9 +123,9 @@ const runSingleRequest = async function (
|
|||||||
}
|
}
|
||||||
|
|
||||||
let response, responseTime;
|
let response, responseTime;
|
||||||
|
const start = Date.now();
|
||||||
try {
|
try {
|
||||||
// run request
|
// run request
|
||||||
const start = Date.now();
|
|
||||||
response = await axios(request);
|
response = await axios(request);
|
||||||
responseTime = Date.now() - start;
|
responseTime = Date.now() - start;
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
@ -273,7 +273,8 @@ const runSingleRequest = async function (
|
|||||||
status: null,
|
status: null,
|
||||||
statusText: null,
|
statusText: null,
|
||||||
headers: null,
|
headers: null,
|
||||||
data: null
|
data: null,
|
||||||
|
responseTime: 0
|
||||||
},
|
},
|
||||||
error: err.message,
|
error: err.message,
|
||||||
assertionResults: [],
|
assertionResults: [],
|
||||||
|
Loading…
Reference in New Issue
Block a user