Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
mantid
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mantidproject
mantid
Commits
30bec258
Commit
30bec258
authored
7 years ago
by
Martyn Gigg
Committed by
GitHub
7 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #19872 from mantidproject/19866_unittest_speedups
DevWorkshop UnitTest Speedup Work
parents
2a4e5069
c7d79b67
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Framework/LiveData/test/KafkaEventStreamDecoderTest.h
+6
-6
6 additions, 6 deletions
Framework/LiveData/test/KafkaEventStreamDecoderTest.h
with
6 additions
and
6 deletions
Framework/LiveData/test/KafkaEventStreamDecoderTest.h
+
6
−
6
View file @
30bec258
...
...
@@ -68,7 +68,7 @@ public:
TSM_ASSERT
(
"Decoder should not have create data buffers yet"
,
!
decoder
->
hasData
());
TS_ASSERT_THROWS_NOTHING
(
decoder
->
startCapture
());
std
::
this_thread
::
sleep_for
(
std
::
chrono
::
milliseconds
(
5
00
));
std
::
this_thread
::
sleep_for
(
std
::
chrono
::
milliseconds
(
1
00
));
Workspace_sptr
workspace
;
TSM_ASSERT
(
"Decoder's data buffers should be created now"
,
decoder
->
hasData
());
...
...
@@ -104,7 +104,7 @@ public:
.
WillOnce
(
Return
(
new
FakeISISSpDetStreamSubscriber
));
auto
decoder
=
createTestDecoder
(
mockBroker
);
TS_ASSERT_THROWS_NOTHING
(
decoder
->
startCapture
());
std
::
this_thread
::
sleep_for
(
std
::
chrono
::
milliseconds
(
5
00
));
std
::
this_thread
::
sleep_for
(
std
::
chrono
::
milliseconds
(
1
00
));
Workspace_sptr
workspace
;
TS_ASSERT_THROWS_NOTHING
(
workspace
=
decoder
->
extractData
());
TS_ASSERT_THROWS_NOTHING
(
decoder
->
stopCapture
());
...
...
@@ -141,7 +141,7 @@ public:
.
WillOnce
(
Return
(
new
FakeISISSpDetStreamSubscriber
));
auto
decoder
=
createTestDecoder
(
mockBroker
);
TS_ASSERT_THROWS_NOTHING
(
decoder
->
startCapture
());
std
::
this_thread
::
sleep_for
(
std
::
chrono
::
milliseconds
(
5
00
));
std
::
this_thread
::
sleep_for
(
std
::
chrono
::
milliseconds
(
1
00
));
TS_ASSERT_THROWS_NOTHING
(
decoder
->
extractData
());
TS_ASSERT_THROWS_NOTHING
(
decoder
->
stopCapture
());
TS_ASSERT
(
!
decoder
->
isCapturing
());
...
...
@@ -162,7 +162,7 @@ public:
.
WillOnce
(
Return
(
new
FakeExceptionThrowingStreamSubscriber
));
auto
decoder
=
createTestDecoder
(
mockBroker
);
TS_ASSERT_THROWS_NOTHING
(
decoder
->
startCapture
());
std
::
this_thread
::
sleep_for
(
std
::
chrono
::
milliseconds
(
100
0
));
std
::
this_thread
::
sleep_for
(
std
::
chrono
::
milliseconds
(
100
));
TS_ASSERT_THROWS
(
decoder
->
extractData
(),
std
::
runtime_error
);
TS_ASSERT_THROWS_NOTHING
(
decoder
->
stopCapture
());
TS_ASSERT
(
!
decoder
->
isCapturing
());
...
...
@@ -180,7 +180,7 @@ public:
.
WillOnce
(
Return
(
new
FakeEmptyStreamSubscriber
));
auto
decoder
=
createTestDecoder
(
mockBroker
);
TS_ASSERT_THROWS_NOTHING
(
decoder
->
startCapture
());
std
::
this_thread
::
sleep_for
(
std
::
chrono
::
milliseconds
(
100
0
));
std
::
this_thread
::
sleep_for
(
std
::
chrono
::
milliseconds
(
100
));
TS_ASSERT_THROWS
(
decoder
->
extractData
(),
std
::
runtime_error
);
TS_ASSERT_THROWS_NOTHING
(
decoder
->
stopCapture
());
TS_ASSERT
(
!
decoder
->
isCapturing
());
...
...
@@ -198,7 +198,7 @@ public:
.
WillOnce
(
Return
(
new
FakeISISSpDetStreamSubscriber
));
auto
decoder
=
createTestDecoder
(
mockBroker
);
TS_ASSERT_THROWS_NOTHING
(
decoder
->
startCapture
());
std
::
this_thread
::
sleep_for
(
std
::
chrono
::
milliseconds
(
100
0
));
std
::
this_thread
::
sleep_for
(
std
::
chrono
::
milliseconds
(
100
));
TS_ASSERT_THROWS
(
decoder
->
extractData
(),
std
::
runtime_error
);
TS_ASSERT_THROWS_NOTHING
(
decoder
->
stopCapture
());
TS_ASSERT
(
!
decoder
->
isCapturing
());
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment