Skip to content

Commit d306466

Browse files
authored
DEV: Add missing freeze_time in report_generator_spec (#327)
We are missing two `freeze_time`s in the spec, which makes these two tests flaky tests. ref: t/138542
1 parent 9132153 commit d306466

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

spec/report_generator_spec.rb

+2
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@
7575

7676
it "works with email recipients" do
7777
DiscourseDataExplorer::ResultToMarkdown.expects(:convert).returns("le table")
78+
freeze_time
7879

7980
8081
result = described_class.generate(query.id, query_params, [email])
@@ -96,6 +97,7 @@
9697

9798
it "works with duplicate recipients" do
9899
DiscourseDataExplorer::ResultToMarkdown.expects(:convert).returns("table data")
100+
freeze_time
99101

100102
result = described_class.generate(query.id, query_params, [user.username, user.username])
101103

0 commit comments

Comments
 (0)