Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit bc8cb9e

Browse files
author
Antonio Scandurra
committed
Use real clock in flaky tests
1 parent f47ff00 commit bc8cb9e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

spec/results-view-spec.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -669,6 +669,8 @@ describe('ResultsView', () => {
669669

670670
describe("copying path with find-and-replace:copy-path", () => {
671671
it("copies the selected file path to clipboard", async () => {
672+
jasmine.useRealClock()
673+
672674
projectFindView.findEditor.setText('items');
673675
atom.commands.dispatch(projectFindView.element, 'core:confirm');
674676
await searchPromise;
@@ -686,6 +688,8 @@ describe('ResultsView', () => {
686688
});
687689

688690
it("copies the selected file path to the clipboard when there are multiple project folders", async () => {
691+
jasmine.useRealClock()
692+
689693
const folder1 = temp.mkdirSync('folder-1')
690694
const file1 = path.join(folder1, 'sample.txt')
691695
fs.writeFileSync(file1, 'items')

0 commit comments

Comments
 (0)