Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/18/11 15:51:14 (13 years ago)
Author:
ascheibe
Message:

#1233

  • allow different versions of the same plugin in PluginCache
  • fixes for the SlaveTests
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave.Tests/SlaveTest.cs

    r5314 r5325  
    2323using System.Collections.Generic;
    2424using System.Linq;
    25 using System.ServiceModel;
    2625using HeuristicLab.Clients.Common;
    2726using HeuristicLab.Services.Hive.Common;
     
    3332  [TestClass]
    3433  public class SlaveTest {
    35 
    36     private static ServiceHost slaveComm;
    3734    private static SlaveCommListener listener;
    3835
     
    4239      PluginLoader.pluginAssemblies.Any();
    4340      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();*/
    4843    }
    4944
    5045    [ClassCleanup]
    5146    public static void MyClassCleanup() {
    52       listener.Close();
    53       slaveComm.Close();
     47      //listener.Close();
    5448    }
    5549
     
    9791        Assert.AreEqual<int>(1, ms.ResultJobs.Count);
    9892        Assert.AreEqual<Guid>(testJob.Id, ms.ResultJobs[0].Id);
     93        core.Shutdown();
    9994      }
    10095    }
     
    131126        HeuristicLab.Clients.Hive.Slave.Core core = new Slave.Core();
    132127        core.Start();
    133 
    134128      }
    135129    }
     
    195189        core.Start();
    196190        Assert.AreEqual<int>(2, ms.ResultJobs.Count);
    197 
     191        core.Shutdown();
    198192      }
    199193    }
    200 
    201 
    202 
    203 
    204 
    205 
    206 
    207 
    208 
    209194  }
    210195}
Note: See TracChangeset for help on using the changeset viewer.