Skip to content

Commit 0735667

Browse files
committed
revert 76e295e
1 parent 18813fc commit 0735667

File tree

1 file changed

+4
-14
lines changed
  • test/configCases/plugins/profiling-plugin

1 file changed

+4
-14
lines changed

test/configCases/plugins/profiling-plugin/index.js

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,15 @@ it("should generate a events.json file", (done) => {
55
path = require("path"),
66
os = require("os");
77

8-
// HACK: we need this timeout on the CI only,
9-
// because the filesystem is less responsive
10-
setTimeout(() => {
11-
expect(fs.existsSync(path.join(__dirname, "events.json"))).toBe(true);
12-
done();
13-
}, 500)
8+
expect(fs.existsSync(path.join(__dirname, "events.json"))).toBe(true);
149
});
1510

1611
it("should have proper setup record inside of the json stream", (done) => {
1712
var fs = require("fs"),
1813
path = require("path"),
1914
os = require("os");
2015

21-
// HACK: we need this timeout on the CI only,
22-
// because the filesystem is less responsive
23-
setTimeout(() => {
24-
// convert json stream to valid
25-
var source = JSON.parse(fs.readFileSync(path.join(__dirname, "events.json"), "utf-8").toString() + "{}]");
26-
expect(source[0].id).toEqual(1);
27-
done();
28-
}, 500)
16+
// convert json stream to valid
17+
var source = JSON.parse(fs.readFileSync(path.join(__dirname, "events.json"), "utf-8").toString() + "{}]");
18+
expect(source[0].id).toEqual(1);
2919
});

0 commit comments

Comments
 (0)