Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openbis
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sispub
openbis
Commits
38067aa5
Commit
38067aa5
authored
12 years ago
by
felmer
Browse files
Options
Downloads
Patches
Plain Diff
fixing ServiceFinderTimeoutTest
SVN: 27318
parent
ef051b8d
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
openbis-common/sourceTest/java/ch/systemsx/cisd/openbis/common/api/client/ServiceFinderTimeoutTest.java
+4
-5
4 additions, 5 deletions
...d/openbis/common/api/client/ServiceFinderTimeoutTest.java
with
4 additions
and
5 deletions
openbis-common/sourceTest/java/ch/systemsx/cisd/openbis/common/api/client/ServiceFinderTimeoutTest.java
+
4
−
5
View file @
38067aa5
...
...
@@ -82,8 +82,10 @@ public class ServiceFinderTimeoutTest extends AssertJUnit
private
AtomicBoolean
keepRunning
=
new
AtomicBoolean
(
true
);
public
void
start
()
public
void
start
()
throws
Exception
{
serverSocket
=
new
ServerSocket
(
0
);
serverSocket
.
setSoTimeout
(
1000
);
Runnable
serverThread
=
new
Runnable
()
{
@Override
...
...
@@ -104,9 +106,6 @@ public class ServiceFinderTimeoutTest extends AssertJUnit
private
void
runInternal
()
throws
Exception
{
serverSocket
=
new
ServerSocket
(
0
);
serverSocket
.
setSoTimeout
(
1000
);
System
.
out
.
println
(
"ServiceFinderTimeoutTest.NotRespondingServer.runInternal() "
+
serverSocket
);
while
(
keepRunning
.
get
())
{
...
...
@@ -157,7 +156,7 @@ public class ServiceFinderTimeoutTest extends AssertJUnit
return
serverSocket
.
getLocalPort
();
}
public
static
void
main
(
String
[]
args
)
public
static
void
main
(
String
[]
args
)
throws
Exception
{
new
NotRespondingServer
().
start
();
}
...
...
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