- Timestamp:
- 01/18/11 15:51:14 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave.Tests/SlaveTest.cs
r5314 r5325 23 23 using System.Collections.Generic; 24 24 using System.Linq; 25 using System.ServiceModel;26 25 using HeuristicLab.Clients.Common; 27 26 using HeuristicLab.Services.Hive.Common; … … 33 32 [TestClass] 34 33 public class SlaveTest { 35 36 private static ServiceHost slaveComm;37 34 private static SlaveCommListener listener; 38 35 … … 42 39 PluginLoader.pluginAssemblies.Any(); 43 40 ServiceLocator.Instance = new MockServiceLocator(); 44 slaveComm = new ServiceHost(typeof(SlaveCommunicationService)); 45 slaveComm.Open(); 46 listener = new SlaveCommListener(); 47 listener.Open(); 41 /* listener = new SlaveCommListener(); 42 listener.Open();*/ 48 43 } 49 44 50 45 [ClassCleanup] 51 46 public static void MyClassCleanup() { 52 listener.Close(); 53 slaveComm.Close(); 47 //listener.Close(); 54 48 } 55 49 … … 97 91 Assert.AreEqual<int>(1, ms.ResultJobs.Count); 98 92 Assert.AreEqual<Guid>(testJob.Id, ms.ResultJobs[0].Id); 93 core.Shutdown(); 99 94 } 100 95 } … … 131 126 HeuristicLab.Clients.Hive.Slave.Core core = new Slave.Core(); 132 127 core.Start(); 133 134 128 } 135 129 } … … 195 189 core.Start(); 196 190 Assert.AreEqual<int>(2, ms.ResultJobs.Count); 197 191 core.Shutdown(); 198 192 } 199 193 } 200 201 202 203 204 205 206 207 208 209 194 } 210 195 }
Note: See TracChangeset
for help on using the changeset viewer.