cleanup
This commit is contained in:
parent
7e5121a642
commit
47aedc2ac8
@ -8,7 +8,6 @@ namespace ContinuousTests
|
|||||||
{
|
{
|
||||||
private readonly TestLifecycle lifecycle;
|
private readonly TestLifecycle lifecycle;
|
||||||
private readonly RunningContainer[] containers;
|
private readonly RunningContainer[] containers;
|
||||||
//private readonly CodexDeployment deployment;
|
|
||||||
private readonly string outputPath;
|
private readonly string outputPath;
|
||||||
private readonly CancellationToken cancelToken;
|
private readonly CancellationToken cancelToken;
|
||||||
|
|
||||||
@ -16,7 +15,6 @@ namespace ContinuousTests
|
|||||||
{
|
{
|
||||||
this.lifecycle = lifecycle;
|
this.lifecycle = lifecycle;
|
||||||
this.containers = containers;
|
this.containers = containers;
|
||||||
//this.deployment = deployment;
|
|
||||||
this.outputPath = outputPath;
|
this.outputPath = outputPath;
|
||||||
this.cancelToken = cancelToken;
|
this.cancelToken = cancelToken;
|
||||||
}
|
}
|
||||||
|
@ -30,7 +30,8 @@ namespace ContinuousTests
|
|||||||
|
|
||||||
ClearAllCustomNamespaces(allTests, overviewLog);
|
ClearAllCustomNamespaces(allTests, overviewLog);
|
||||||
|
|
||||||
StartLogDownloader(taskFactory);
|
// Disabled for now. Still looking for a better way.
|
||||||
|
// StartLogDownloader(taskFactory);
|
||||||
|
|
||||||
var testLoops = allTests.Select(t => new TestLoop(taskFactory, config, overviewLog, t.GetType(), t.RunTestEvery, cancelToken)).ToArray();
|
var testLoops = allTests.Select(t => new TestLoop(taskFactory, config, overviewLog, t.GetType(), t.RunTestEvery, cancelToken)).ToArray();
|
||||||
|
|
||||||
|
@ -175,12 +175,17 @@ namespace DistTestCore
|
|||||||
GetTestLog().Debug(msg);
|
GetTestLog().Debug(msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void Measure(string name, Action action)
|
||||||
|
{
|
||||||
|
Stopwatch.Measure(Get().Log, name, action);
|
||||||
|
}
|
||||||
|
|
||||||
protected CodexSetup CreateCodexSetup(int numberOfNodes)
|
protected CodexSetup CreateCodexSetup(int numberOfNodes)
|
||||||
{
|
{
|
||||||
return new CodexSetup(numberOfNodes, configuration.GetCodexLogLevel());
|
return new CodexSetup(numberOfNodes, configuration.GetCodexLogLevel());
|
||||||
}
|
}
|
||||||
|
|
||||||
public TestLifecycle Get()
|
private TestLifecycle Get()
|
||||||
{
|
{
|
||||||
lock (lifecycleLock)
|
lock (lifecycleLock)
|
||||||
{
|
{
|
||||||
|
@ -99,7 +99,7 @@ namespace Tests.BasicTests
|
|||||||
var cid = node.UploadFile(file);
|
var cid = node.UploadFile(file);
|
||||||
|
|
||||||
var cidTag = cid.Id.Substring(cid.Id.Length - 6);
|
var cidTag = cid.Id.Substring(cid.Id.Length - 6);
|
||||||
Stopwatch.Measure(Get().Log, "upload-log-asserts", () =>
|
Measure("upload-log-asserts", () =>
|
||||||
{
|
{
|
||||||
var uploadLog = node.DownloadLog(tailLines: 50000);
|
var uploadLog = node.DownloadLog(tailLines: 50000);
|
||||||
|
|
||||||
@ -120,7 +120,7 @@ namespace Tests.BasicTests
|
|||||||
var dl = node.DownloadContent(cid);
|
var dl = node.DownloadContent(cid);
|
||||||
file.AssertIsEqual(dl);
|
file.AssertIsEqual(dl);
|
||||||
|
|
||||||
Stopwatch.Measure(Get().Log, "download-log-asserts", () =>
|
Measure("download-log-asserts", () =>
|
||||||
{
|
{
|
||||||
var downloadLog = node.DownloadLog(tailLines: 50000);
|
var downloadLog = node.DownloadLog(tailLines: 50000);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user