Skip to content

Commit

Permalink
Auto-format source code
Browse files Browse the repository at this point in the history
  • Loading branch information
GitHub Actions Autoformatter committed Dec 12, 2024
1 parent e4c4bd2 commit 073985c
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 11 deletions.
2 changes: 1 addition & 1 deletion tests/xharness/Jenkins/Jenkins.cs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ async Task PopulateTasksAsync ()

// Start creating all the tasks in parallel
var tasks = testFactories.Select (v => v.CreateTasksAsync ()).ToArray ();

// Wait for everything to finish
await Task.WhenAll (tasks);

Expand Down
7 changes: 3 additions & 4 deletions tests/xharness/Jenkins/MacTaskTestsFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ public override Task<IEnumerable<AppleTestTask>> CreateTasksAsync ()

var rv = new List<AppleTestTask> ();

foreach (var project in jenkins.Harness.TestProjects)
{
foreach (var project in jenkins.Harness.TestProjects) {
if (!project.IsExecutableProject)
continue;

Expand Down Expand Up @@ -64,7 +63,7 @@ public override Task<IEnumerable<AppleTestTask>> CreateTasksAsync ()
SupportsParallelExecution = false,
};
build.CloneTestProject (jenkins.MainLog, processManager, project, HarnessConfiguration.RootDirectory);

var exec = new MacExecuteTask (jenkins, build, processManager, crashReportSnapshotFactory) {
Ignored = ignored,
TestName = project.Name,
Expand All @@ -83,7 +82,7 @@ public override Task<IEnumerable<AppleTestTask>> CreateTasksAsync ()
v.Variation = string.IsNullOrEmpty (v.Variation) ? config : v.Variation;
}

rv.AddRange(variations);
rv.AddRange (variations);
}
}

Expand Down
2 changes: 1 addition & 1 deletion tests/xharness/Jenkins/NUnitTestTasksEnumerable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
namespace Xharness.Jenkins {
abstract class TaskFactory {
protected Jenkins Jenkins { get; private set; }
protected IMlaunchProcessManager ProcessManager { get; private set; }
protected IMlaunchProcessManager ProcessManager { get; private set; }
protected TestVariationsFactory TestVariationsFactory { get; private set; }

public TaskFactory (Jenkins jenkins, IMlaunchProcessManager processManager, TestVariationsFactory testVariationsFactory)
Expand Down
9 changes: 4 additions & 5 deletions tests/xharness/Jenkins/RunDeviceTasksFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
using Xharness.Jenkins.TestTasks;

namespace Xharness.Jenkins {
class RunDeviceTasksFactory : TaskFactory {
class RunDeviceTasksFactory : TaskFactory {
public RunDeviceTasksFactory (Jenkins jenkins, IMlaunchProcessManager processManager, TestVariationsFactory testVariationsFactory)
: base (jenkins, processManager, testVariationsFactory)
{
Expand Down Expand Up @@ -58,10 +58,9 @@ public override Task<IEnumerable<AppleTestTask>> CreateTasksAsync ()
tunnelBore: jenkins.TunnelBore,
errorKnowledgeBase: jenkins.ErrorKnowledgeBase,
useTcpTunnel: jenkins.Harness.UseTcpTunnel,
candidates: candidates)
{
Ignored = ignored,
};
candidates: candidates) {
Ignored = ignored,
};

rv.Add (runTask);
}
Expand Down

0 comments on commit 073985c

Please sign in to comment.