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
58c447dc
Commit
58c447dc
authored
Aug 10, 2018
by
Jasper Maes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rails5: fix mysql milliseconds problem in project_import_state_spec
parent
daca5cab
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
ee/changelogs/unreleased/rails5-fix-mysql-milliseconds-project-import-state-spec.yml
...ils5-fix-mysql-milliseconds-project-import-state-spec.yml
+5
-0
ee/spec/models/project_import_state_spec.rb
ee/spec/models/project_import_state_spec.rb
+2
-2
No files found.
ee/changelogs/unreleased/rails5-fix-mysql-milliseconds-project-import-state-spec.yml
0 → 100644
View file @
58c447dc
---
title
:
'
Rails5:
fix
mysql
milliseconds
problem
in
project_import_state_spec'
merge_request
:
6874
author
:
Jasper Maes
type
:
fixed
ee/spec/models/project_import_state_spec.rb
View file @
58c447dc
...
...
@@ -6,7 +6,7 @@ describe ProjectImportState, type: :model do
Timecop
.
freeze
(
Time
.
now
)
do
import_state
=
create
(
:import_state
,
:mirror
)
expect
(
import_state
.
next_execution_timestamp
).
to
eq
(
Time
.
now
)
expect
(
import_state
.
next_execution_timestamp
).
to
be_like_time
(
Time
.
now
)
end
end
end
...
...
@@ -29,7 +29,7 @@ describe ProjectImportState, type: :model do
describe
'#set_next_execution_timestamp'
do
let
(
:import_state
)
{
create
(
:import_state
,
:mirror
,
:finished
)
}
let!
(
:timestamp
)
{
Time
.
now
}
let!
(
:timestamp
)
{
Time
.
now
.
change
(
usec:
0
)
}
let!
(
:jitter
)
{
2
.
seconds
}
before
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