Permalink
Browse files

Tune test parameters to speed them up where possible

  • Loading branch information...
1 parent c74843f commit 117670bf6b45ee11181e4ba17a70f0bce75aee54 @nwoolls committed Nov 21, 2014
@@ -51,7 +51,7 @@ private void Broadcaster_BroadcastVerb_SendsUdpPacket(string verb, out bool onli
listener.InstanceOffline += (sender, ea) => flaggedOffline = true;
Broadcaster.Broadcast(verb, 0);
- Thread.Sleep(500);
+ Thread.Sleep(100);
}
finally
{
@@ -15,7 +15,7 @@ public void Find_Succeeds()
for (int i = 0; i < times; i++)
{
- List<IPEndPoint> endpoints = PortScanner.Find("192.168.0.25-100", 4028, 4028);
+ List<IPEndPoint> endpoints = PortScanner.Find("192.168.0.254-255", 4028, 4028);
Assert.IsTrue(endpoints.Count > 0);
}
}
@@ -14,15 +14,15 @@ public void Find_FindsMiners()
for (int i = 0; i < times; i++)
{
- List<IPEndPoint> miners = MinerFinder.Find("192.168.0.25-100", 4028, 4028);
+ List<IPEndPoint> miners = MinerFinder.Find("192.168.0.254-255", 4028, 4028);
Assert.IsTrue(miners.Count > 0);
}
}
[TestMethod]
public void Check_ChecksMiners()
{
- List<IPEndPoint> miners = MinerFinder.Find("192.168.0.25-100", 4028, 4028);
+ List<IPEndPoint> miners = MinerFinder.Find("192.168.0.254-255", 4028, 4028);
int goodCount = miners.Count;
miners.Add(new IPEndPoint(IPAddress.Parse("10.0.0.1"), 1000));

0 comments on commit 117670b

Please sign in to comment.