diff --git a/ChangeLog.md b/ChangeLog.md index 13269aa..67af03a 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -1,6 +1,13 @@ ## Change log +### v1.9.2 (2022-02-02) +- Remove debug log written with Console.WriteLine (#336) +- Automatically run MongoDB during the tests (with EphemeralMongo) (#337) +- Make compatible with MongoDB.Driver linq v3 (#338) +- Update to Hangfire.Core 1.7.33 +- Update MongoDB.Driver to 2.19.0 + ### v1.9.1 (2022-12-19) - Fixes SchemaDto deserialization bug (#333) diff --git a/src/Hangfire.Mongo.Sample.ASPNetCore/Hangfire.Mongo.Sample.ASPNetCore.csproj b/src/Hangfire.Mongo.Sample.ASPNetCore/Hangfire.Mongo.Sample.ASPNetCore.csproj index 74d1ae6..9764cd0 100644 --- a/src/Hangfire.Mongo.Sample.ASPNetCore/Hangfire.Mongo.Sample.ASPNetCore.csproj +++ b/src/Hangfire.Mongo.Sample.ASPNetCore/Hangfire.Mongo.Sample.ASPNetCore.csproj @@ -2,7 +2,7 @@ net6.0 - 1.9.1 + 1.9.2 MongoDB storage implementation for Hangfire (background job system for ASP.NET applications). Copyright © 2014-2019 Sergey Zwezdin, Martin Lobger, Jonas Gottschau Sergey Zwezdin, Martin Lobger, Jonas Gottschau @@ -19,12 +19,12 @@ - - - - + + + + - + diff --git a/src/Hangfire.Mongo.Sample.CosmosDB/Hangfire.Mongo.Sample.CosmosDB.csproj b/src/Hangfire.Mongo.Sample.CosmosDB/Hangfire.Mongo.Sample.CosmosDB.csproj index ec3494b..bd99331 100644 --- a/src/Hangfire.Mongo.Sample.CosmosDB/Hangfire.Mongo.Sample.CosmosDB.csproj +++ b/src/Hangfire.Mongo.Sample.CosmosDB/Hangfire.Mongo.Sample.CosmosDB.csproj @@ -2,7 +2,7 @@ net6.0 - 1.9.1 + 1.9.2 MongoDB storage implementation for Hangfire (background job system for ASP.NET applications). Copyright © 2014-2019 Sergey Zwezdin, Martin Lobger, Jonas Gottschau Sergey Zwezdin, Martin Lobger, Jonas Gottschau @@ -19,11 +19,11 @@ - - - - - + + + + + diff --git a/src/Hangfire.Mongo.Sample.NETCore/Hangfire.Mongo.Sample.NETCore.csproj b/src/Hangfire.Mongo.Sample.NETCore/Hangfire.Mongo.Sample.NETCore.csproj index a91e509..cd651af 100644 --- a/src/Hangfire.Mongo.Sample.NETCore/Hangfire.Mongo.Sample.NETCore.csproj +++ b/src/Hangfire.Mongo.Sample.NETCore/Hangfire.Mongo.Sample.NETCore.csproj @@ -4,7 +4,7 @@ Hangfire.Mongo.Sample.NETCore Exe Hangfire.Mongo.Sample.NETCore - 1.9.1 + 1.9.2 MongoDB storage implementation for Hangfire (background job system for ASP.NET applications). Copyright © 2014-2019 Sergey Zwezdin, Martin Lobger, Jonas Gottschau Sergey Zwezdin, Martin Lobger, Jonas Gottschau @@ -18,8 +18,8 @@ - + - + \ No newline at end of file diff --git a/src/Hangfire.Mongo.Tests/Hangfire.Mongo.Tests.csproj b/src/Hangfire.Mongo.Tests/Hangfire.Mongo.Tests.csproj index 741bb82..dcf56f5 100644 --- a/src/Hangfire.Mongo.Tests/Hangfire.Mongo.Tests.csproj +++ b/src/Hangfire.Mongo.Tests/Hangfire.Mongo.Tests.csproj @@ -28,12 +28,12 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive - + diff --git a/src/Hangfire.Mongo.Tests/MongoWatcherFacts.cs b/src/Hangfire.Mongo.Tests/MongoWatcherFacts.cs index fb2748e..a1a6905 100644 --- a/src/Hangfire.Mongo.Tests/MongoWatcherFacts.cs +++ b/src/Hangfire.Mongo.Tests/MongoWatcherFacts.cs @@ -10,6 +10,7 @@ namespace Hangfire.Mongo.Tests { + [Collection("Database")] public sealed class MongoWatcherFacts : IDisposable { private readonly HangfireDbContext _dbContext; @@ -42,7 +43,7 @@ public void Dispose() _cts.Dispose(); } - [Fact(Skip = "Needs replica set, enable when you figure out how to set it up in github actions")] + [Fact] public void Execute_JobEnqueued_Signaled() { // ARRANGE diff --git a/src/Hangfire.Mongo.Tests/Utils/MongoDbFixture.cs b/src/Hangfire.Mongo.Tests/Utils/MongoDbFixture.cs index 3dc5ea9..3f1db14 100644 --- a/src/Hangfire.Mongo.Tests/Utils/MongoDbFixture.cs +++ b/src/Hangfire.Mongo.Tests/Utils/MongoDbFixture.cs @@ -21,8 +21,9 @@ public MongoDbFixture(IMessageSink sink) { var options = new MongoRunnerOptions { - StandardOuputLogger = text => sink.OnMessage(new DiagnosticMessage(text)), + //StandardOuputLogger = text => sink.OnMessage(new DiagnosticMessage(text)), StandardErrorLogger = text => sink.OnMessage(new DiagnosticMessage($"MongoDB ERROR: {text}")), + UseSingleNodeReplicaSet = true }; _runner = MongoRunner.Run(options); } diff --git a/src/Hangfire.Mongo/Hangfire.Mongo.csproj b/src/Hangfire.Mongo/Hangfire.Mongo.csproj index 38773d7..498fb1c 100644 --- a/src/Hangfire.Mongo/Hangfire.Mongo.csproj +++ b/src/Hangfire.Mongo/Hangfire.Mongo.csproj @@ -1,6 +1,6 @@ - 1.9.1 + 1.9.2 netstandard2.0 $(NoWarn);CS0618 true @@ -21,8 +21,12 @@ Sergey Zwezdin, Jonas Gottschau MongoDB storage implementation for Hangfire (background job system for ASP.NET applications). Hangfire AspNet OWIN MongoDB CosmosDB Long-Running Background Fire-And-Forget Delayed Recurring Tasks Jobs Scheduler Threading Queues - 1.9.1 - - Fixes SchemaDto deserialization bug (#333) + 1.9.2 + - Remove debug log written with Console.WriteLine (#336) + - Automatically run MongoDB during the tests (with EphemeralMongo) (#337) + - Make compatible with MongoDB.Driver linq v3 (#338) + - Update to Hangfire.Core 1.7.33 + - Update MongoDB.Driver to 2.19.0 README.md @@ -33,7 +37,7 @@ - - + +