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
This commit is contained in:
@@ -75,6 +75,7 @@ describe DiscourseDataExplorer::ReportGenerator do
|
||||
|
||||
it "works with email recipients" do
|
||||
DiscourseDataExplorer::ResultToMarkdown.expects(:convert).returns("le table")
|
||||
freeze_time
|
||||
|
||||
email = "[email protected]"
|
||||
result = described_class.generate(query.id, query_params, [email])
|
||||
@@ -96,6 +97,7 @@ describe DiscourseDataExplorer::ReportGenerator do
|
||||
|
||||
it "works with duplicate recipients" do
|
||||
DiscourseDataExplorer::ResultToMarkdown.expects(:convert).returns("table data")
|
||||
freeze_time
|
||||
|
||||
result = described_class.generate(query.id, query_params, [user.username, user.username])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user