mirror of
https://github.com/usebruno/bruno.git
synced 2024-12-23 23:29:47 +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;
|
||||
const start = Date.now();
|
||||
try {
|
||||
// run request
|
||||
const start = Date.now();
|
||||
response = await axios(request);
|
||||
responseTime = Date.now() - start;
|
||||
} catch (err) {
|
||||
@ -273,7 +273,8 @@ const runSingleRequest = async function (
|
||||
status: null,
|
||||
statusText: null,
|
||||
headers: null,
|
||||
data: null
|
||||
data: null,
|
||||
responseTime: 0
|
||||
},
|
||||
error: err.message,
|
||||
assertionResults: [],
|
||||
|
Loading…
Reference in New Issue
Block a user