Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
cameo-tests
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Cameo
cameo-tests
Commits
8f5f33d5
Commit
8f5f33d5
authored
Jul 05, 2018
by
legoc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modified test timeout
parent
454ccdf7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
4 deletions
+18
-4
src/TestTimeoutApplication.cpp
src/TestTimeoutApplication.cpp
+18
-4
No files found.
src/TestTimeoutApplication.cpp
View file @
8f5f33d5
...
...
@@ -29,15 +29,29 @@ int main(int argc, char *argv[]) {
// The start function must be called into a block to ensure the destructor of Instance is called before This::terminate()
{
Server
server
(
"tcp://localhost:
9
000"
);
Server
server
(
"tcp://localhost:
10
000"
);
while
(
server
.
isAvailable
(
1000
))
{
while
(
true
)
{
if
(
server
.
isAvailable
(
1
))
{
cout
<<
"server is available"
<<
endl
;
boost
::
this_thread
::
sleep
(
boost
::
posix_time
::
seconds
(
1
));
}
else
{
cout
<<
"server is not available"
<<
endl
;
}
if
(
server
.
isAvailable
(
1000
))
{
cout
<<
"server is available"
<<
endl
;
}
else
{
cout
<<
"server is not available"
<<
endl
;
}
boost
::
this_thread
::
sleep
(
boost
::
posix_time
::
seconds
(
1
));
}
}
return
0
;
}
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