Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
2bf26b81
Commit
2bf26b81
authored
Nov 11, 2020
by
Tan Le
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix flaky test due to ordering
Explicitly set `created_at` to make ordering deterministic.
parent
3e6a4c42
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
ee/spec/lib/gitlab/audit/events/preloader_spec.rb
ee/spec/lib/gitlab/audit/events/preloader_spec.rb
+6
-1
No files found.
ee/spec/lib/gitlab/audit/events/preloader_spec.rb
View file @
2bf26b81
...
...
@@ -3,7 +3,12 @@
require
'spec_helper'
RSpec
.
describe
Gitlab
::
Audit
::
Events
::
Preloader
do
let_it_be
(
:audit_events
)
{
create_list
(
:audit_event
,
2
)
}
let_it_be
(
:audit_events
)
do
[
create
(
:audit_event
,
created_at:
2
.
days
.
ago
),
create
(
:audit_event
,
created_at:
1
.
day
.
ago
)
]
end
let
(
:audit_events_relation
)
{
AuditEvent
.
where
(
id:
audit_events
.
map
(
&
:id
))
}
describe
'.preload!'
do
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment