mirror of
https://github.com/usebruno/bruno.git
synced 2026-07-09 06:55:03 +00:00
feat: allow test to be asynchrone
This commit is contained in:
@@ -187,7 +187,7 @@ const runSingleRequest = async function (
|
||||
const testFile = get(bruJson, 'request.tests');
|
||||
if (testFile && testFile.length) {
|
||||
const testRuntime = new TestRuntime();
|
||||
const result = testRuntime.runTests(
|
||||
const result = await testRuntime.runTests(
|
||||
testFile,
|
||||
request,
|
||||
response,
|
||||
@@ -292,7 +292,7 @@ const runSingleRequest = async function (
|
||||
const testFile = get(bruJson, 'request.tests');
|
||||
if (testFile && testFile.length) {
|
||||
const testRuntime = new TestRuntime();
|
||||
const result = testRuntime.runTests(
|
||||
const result = await testRuntime.runTests(
|
||||
testFile,
|
||||
request,
|
||||
err.response,
|
||||
|
||||
Reference in New Issue
Block a user