2
0
mirror of synced 2025-02-22 13:08:08 +00:00
This commit is contained in:
benbierens 2023-08-22 15:51:39 +02:00
parent 7e5121a642
commit 47aedc2ac8
No known key found for this signature in database
GPG Key ID: FE44815D96D0A1AA
4 changed files with 10 additions and 6 deletions

View File

@ -8,7 +8,6 @@ namespace ContinuousTests
{
private readonly TestLifecycle lifecycle;
private readonly RunningContainer[] containers;
//private readonly CodexDeployment deployment;
private readonly string outputPath;
private readonly CancellationToken cancelToken;
@ -16,7 +15,6 @@ namespace ContinuousTests
{
this.lifecycle = lifecycle;
this.containers = containers;
//this.deployment = deployment;
this.outputPath = outputPath;
this.cancelToken = cancelToken;
}

View File

@ -30,7 +30,8 @@ namespace ContinuousTests
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();

View File

@ -175,12 +175,17 @@ namespace DistTestCore
GetTestLog().Debug(msg);
}
public void Measure(string name, Action action)
{
Stopwatch.Measure(Get().Log, name, action);
}
protected CodexSetup CreateCodexSetup(int numberOfNodes)
{
return new CodexSetup(numberOfNodes, configuration.GetCodexLogLevel());
}
public TestLifecycle Get()
private TestLifecycle Get()
{
lock (lifecycleLock)
{

View File

@ -99,7 +99,7 @@ namespace Tests.BasicTests
var cid = node.UploadFile(file);
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);
@ -120,7 +120,7 @@ namespace Tests.BasicTests
var dl = node.DownloadContent(cid);
file.AssertIsEqual(dl);
Stopwatch.Measure(Get().Log, "download-log-asserts", () =>
Measure("download-log-asserts", () =>
{
var downloadLog = node.DownloadLog(tailLines: 50000);