Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
104
Merge Requests
104
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
slapos
Commits
b57248b5
Commit
b57248b5
authored
Nov 06, 2022
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
software/erp5/test: minor simplifications in test
parent
80c53c41
Pipeline
#24613
failed with stage
in 0 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
software/erp5/test/test/test_mariadb.py
software/erp5/test/test/test_mariadb.py
+9
-8
No files found.
software/erp5/test/test/test_mariadb.py
View file @
b57248b5
...
@@ -173,15 +173,16 @@ class TestCrontabs(MariaDBTestCase, CrontabMixin):
...
@@ -173,15 +173,16 @@ class TestCrontabs(MariaDBTestCase, CrontabMixin):
'check-slow-query-pt-digest-result.py'
,
'check-slow-query-pt-digest-result.py'
,
))
))
with
self
.
assertRaises
(
subprocess
.
CalledProcessError
)
as
error_context
:
with
self
.
assertRaises
(
subprocess
.
CalledProcessError
)
as
error_context
:
subprocess
.
check_output
(
'faketime 2050-01-01 %s'
%
check_slow_query_promise_plugin
[
'command'
],
shell
=
True
)
subprocess
.
check_output
(
'faketime 2050-01-01 %s'
%
check_slow_query_promise_plugin
[
'command'
],
text
=
True
,
shell
=
True
)
self
.
assertEqual
(
self
.
assertEqual
(
error_context
.
exception
.
output
,
error_context
.
exception
.
output
,
b"""
\
"Threshold is lower than expected:
\
n
"
Threshold is lower than expected:
"Expected total queries : 1.0 and current is: 2
\
n
"
Expected total queries : 1.0 and current is: 2
"Expected slowest query : 0.1 and current is: 3
\
n
"
,
Expected slowest query : 0.1 and current is: 3
)
"""
)
class
TestMariaDB
(
MariaDBTestCase
):
class
TestMariaDB
(
MariaDBTestCase
):
def
test_utf8_collation
(
self
):
def
test_utf8_collation
(
self
):
...
...
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