Skip to content

Commit 23a243b

Browse files
committed
Update SqlServerJobQueueFacts.cs
1 parent bbef32b commit 23a243b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: tests/Hangfire.SqlServer.Tests/SqlServerJobQueueFacts.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
using System.Data.Common;
55
using System.Linq;
66
using System.Threading;
7+
using Hangfire.Annotations;
78
using ReferencedDapper::Dapper;
89
using Xunit;
910
// ReSharper disable ArgumentsStyleLiteral
@@ -675,7 +676,7 @@ private static SqlServerJobQueue CreateJobQueue(bool useMicrosoftDataSqlClient,
675676
return new SqlServerJobQueue(storage, new SqlServerStorageOptions { SlidingInvisibilityTimeout = invisibilityTimeout });
676677
}
677678

678-
private static void UseConnection(Action<DbConnection> action, bool useMicrosoftDataSqlClient)
679+
private static void UseConnection([InstantHandle] Action<DbConnection> action, bool useMicrosoftDataSqlClient)
679680
{
680681
using (var connection = ConnectionUtils.CreateConnection(useMicrosoftDataSqlClient))
681682
{

0 commit comments

Comments
 (0)