mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-09 13:50:57 +00:00
added proper super.tearDown call to CourseUpdateTest which should avoid orphan threads and receivers
This commit is contained in:
1 parent
e9975f81a6
commit
e3548080eb
3 files changed
+4
-3
No files matched your search
+1
-1
@@ -66,7 +66,7 @@ public abstract class AbstractTracTracLiveTest extends StoredTrackBasedTest impl
|
||||
// Initialize data controller using live and stored data sources
|
||||
controller = new DataController(liveUri, storedUri, this);
|
||||
// Start live and stored data streams
|
||||
ioThread = new Thread(controller, "io");
|
||||
ioThread = new Thread(controller, "I/O for event "+event.getName()+", paramURL "+paramUrl);
|
||||
// test cases need to start the thread calling startController
|
||||
// after adding their listeners
|
||||
}
|
||||
|
||||
+2
-1
@@ -269,7 +269,8 @@ public class CourseUpdateTest extends AbstractTracTracLiveTest {
|
||||
}
|
||||
|
||||
@After
|
||||
public void tearDown() {
|
||||
public void tearDown() throws MalformedURLException, IOException {
|
||||
super.tearDown();
|
||||
routeData[0] = null;
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -112,7 +112,7 @@ public class TracTracRaceTrackerImpl extends AbstractRaceTrackerImpl implements
|
||||
// Initialize data controller using live and stored data sources
|
||||
controller = new DataController(liveURI, storedURI, this);
|
||||
// Start live and stored data streams
|
||||
ioThread = new Thread(controller, "io");
|
||||
ioThread = new Thread(controller, "I/O for event "+tractracEvent.getName()+", race URL "+paramURL);
|
||||
for (Race tractracRace : tractracEvent.getRaceList()) {
|
||||
// removeRace may detach the domain event from the domain factory if that
|
||||
// removed the last race; therefore, it's important to getOrCreate the
|
||||
|
||||
Reference in new issue
Block a user