Skip to content

Commit

Permalink
fix(service-broker): event emitter implementation issue moleculerjs#1065
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton-Burdin committed Jun 6, 2022
1 parent c8bdd4b commit 4bb2a87
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/integration/tracing.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,7 @@ describe("Test Tracing feature with actions", () => {

await Promise.all(
posts.map(async post => {
const author = await ctx.call("users.get", { id: post.author });
post.author = author; //eslint-disable-line
post.author = await ctx.call("users.get", { id: post.author });
return post;
})
);
Expand Down Expand Up @@ -124,7 +123,7 @@ describe("Test Tracing feature with actions", () => {
},

async handler(ctx) {
let user = USERS.find(user => user.id == ctx.params.id);
let user = USERS.find(user => user.id === ctx.params.id);
if (user) {
const span = ctx.startSpan("cloning", {
tags: {
Expand Down Expand Up @@ -223,7 +222,8 @@ describe("Test Tracing feature with actions", () => {
}
});

await Promise.delay(500);
// event loop lag <10ms
await Promise.delay(510);

STORE.sort((a, b) => a.startTicks - b.startTicks);

Expand Down

0 comments on commit 4bb2a87

Please sign in to comment.