Skip to content

Commit

Permalink
adds missing await in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rishabhpoddar committed Jun 17, 2022
1 parent 2d273c8 commit 21ddb78
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/querier.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ describe(`Querier: ${printPath("[test/querier.test.js]")}`, function () {

it("test with core base path", async function () {
// first we need to know if the core used supports base_path config
setKeyValueInConfig("base_path", "/test");
await setKeyValueInConfig("base_path", "/test");
await startST();

try {
Expand Down Expand Up @@ -308,7 +308,7 @@ describe(`Querier: ${printPath("[test/querier.test.js]")}`, function () {

it("test with incorrect core base path should fail", async function () {
// first we need to know if the core used supports base_path config
setKeyValueInConfig("base_path", "/some/path");
await setKeyValueInConfig("base_path", "/some/path");
await startST();

try {
Expand Down Expand Up @@ -344,7 +344,7 @@ describe(`Querier: ${printPath("[test/querier.test.js]")}`, function () {

it("test with multiple core base path", async function () {
// first we need to know if the core used supports base_path config
setKeyValueInConfig("base_path", "/some/path");
await setKeyValueInConfig("base_path", "/some/path");
await startST();

try {
Expand All @@ -357,7 +357,7 @@ describe(`Querier: ${printPath("[test/querier.test.js]")}`, function () {
throw error;
}

setKeyValueInConfig("base_path", "/test");
await setKeyValueInConfig("base_path", "/test");
await startST("localhost", 8082);

ST.init({
Expand Down

0 comments on commit 21ddb78

Please sign in to comment.