Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
helto4real committed Dec 19, 2020
1 parent 4ac8877 commit cace02e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 13 deletions.
9 changes: 0 additions & 9 deletions src/DaemonRunner/DaemonRunner/Service/ApiService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,6 @@ public void ConfigureServices(IServiceCollection services)
services.AddTransient<IHttpHandler, NetDaemon.Daemon.HttpHandler>();
services.AddSingleton<NetDaemonHost>();
services.AddHttpClient();


if (_useAdmin == true)
{
// Only enable them if use addmin
// services.AddControllers().PartManager.ApplicationParts.Add(new AssemblyPart(Assembly.GetExecutingAssembly()));
// services.AddControllers(x => x.AllowEmptyInputInBodyModelBinding = true);
// services.AddRouting();
}
}

public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
Expand Down
1 change: 0 additions & 1 deletion tests/NetDaemon.Daemon.Tests/DaemonRunner/Api/ApiTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,6 @@ public async Task TestGetConfig()

Assert.NotNull(response);

// Assert.NotNull(response?.DaemonSettings?.ProjectFolder);
Assert.NotNull(response?.DaemonSettings?.AppSource);

}
Expand Down
5 changes: 2 additions & 3 deletions tests/NetDaemon.Daemon.Tests/appsettings.Testing.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
},
"NetDaemon": {
"Admin": false,
"SourceFolder": "testsource",
"GenerateEntities": true,
"ProjectFolder": "testproject"
"AppSource": "testsource",
"GenerateEntities": true
}
}

0 comments on commit cace02e

Please sign in to comment.