Skip to content

Commit

Permalink
Merge pull request #467 from ripe-tech/dva/fix_race_condition
Browse files Browse the repository at this point in the history
#466 Fix test race condition
  • Loading branch information
joao-conde authored Jan 18, 2023
2 parents 603f03b + 6a8616b commit 2431bab
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions test/js/api/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,15 +196,7 @@ describe("ConfigAPI", function() {
);

// deletes the newly created SKU
result = await new Promise((resolve, reject) => {
const options = remote._build({
url: `${remote.webUrl}admin/models/skus/${createdSku._id}/delete`,
auth: true
});
remote._requestURL(options.url, options, (result, isValid, request) => {
resolve(request);
});
});
await remote.deleteSkuP(createdSku.id);
});

it("should not resolve SKU", async () => {
Expand Down

0 comments on commit 2431bab

Please sign in to comment.