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
0eb29ccd
Commit
0eb29ccd
authored
Sep 02, 2021
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a flaky ordering-related expectation
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
0a38416b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
spec/finders/error_tracking/errors_finder_spec.rb
spec/finders/error_tracking/errors_finder_spec.rb
+2
-1
No files found.
spec/finders/error_tracking/errors_finder_spec.rb
View file @
0eb29ccd
...
...
@@ -6,7 +6,7 @@ RSpec.describe ErrorTracking::ErrorsFinder do
let_it_be
(
:project
)
{
create
(
:project
)
}
let_it_be
(
:user
)
{
project
.
creator
}
let_it_be
(
:error
)
{
create
(
:error_tracking_error
,
project:
project
)
}
let_it_be
(
:error_resolved
)
{
create
(
:error_tracking_error
,
:resolved
,
project:
project
)
}
let_it_be
(
:error_resolved
)
{
create
(
:error_tracking_error
,
:resolved
,
project:
project
,
first_seen_at:
2
.
hours
.
ago
)
}
let_it_be
(
:error_yesterday
)
{
create
(
:error_tracking_error
,
project:
project
,
first_seen_at:
Time
.
zone
.
now
.
yesterday
)
}
before
do
...
...
@@ -35,6 +35,7 @@ RSpec.describe ErrorTracking::ErrorsFinder do
context
'with limit parameter'
do
let
(
:params
)
{
{
limit:
'1'
,
sort:
'first_seen'
}
}
# Sort by first_seen is DESC by default, so the most recent error is `error`
it
{
is_expected
.
to
contain_exactly
(
error
)
}
end
end
...
...
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