Skip to content

Commit

Permalink
chore(ios): fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Almouro committed May 10, 2024
1 parent 6f57afb commit dc16eb8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/commands/test/src/SingleIterationTester.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export class SingleIterationTester {
if (beforeTest) await beforeTest();

await this.maybeStartRecording();
this.performanceMeasurer.start();
await this.performanceMeasurer.start();
await run();
const measures = await this.performanceMeasurer.stop(duration);
await this.maybeStopRecording();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ const loggerDebug = jest.spyOn(Logger, "debug");
const loggerError = jest.spyOn(Logger, "error");

describe("PerformanceMeasurer", () => {
it("handles c++ errors correctly", () => {
it("handles c++ errors correctly", async () => {
const measurer = new PerformanceMeasurer("com.example");
measurer.start();
await measurer.start();
emitMeasure(0);
emitMeasure(1);
perfProfilerMock.stderr?.emit("data", "CPP_ERROR_CANNOT_OPEN_FILE /proc/1234/tasks/578/stat");
Expand Down

0 comments on commit dc16eb8

Please sign in to comment.