From a4b5a614ba38cd168e65dea1f8ce7cefa0e4358a Mon Sep 17 00:00:00 2001 From: Paul Irwin Date: Sat, 24 Feb 2024 17:52:04 -0700 Subject: [PATCH] Fix spelling of TransactionalThreadInterrupt class --- .../Support/Threading/TestUninterruptableMonitor.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Lucene.Net.Tests/Support/Threading/TestUninterruptableMonitor.cs b/src/Lucene.Net.Tests/Support/Threading/TestUninterruptableMonitor.cs index 0c5cb494aa..ff82cb8323 100644 --- a/src/Lucene.Net.Tests/Support/Threading/TestUninterruptableMonitor.cs +++ b/src/Lucene.Net.Tests/Support/Threading/TestUninterruptableMonitor.cs @@ -31,7 +31,7 @@ namespace Lucene.Net.Support [TestFixture] public class TestUninterruptableMonitor : LuceneTestCase { - private class TransactionlThreadInterrupt : ThreadJob + private class TransactionalThreadInterrupt : ThreadJob { private readonly static AtomicInt32 transactionNumber = new AtomicInt32(0); @@ -240,7 +240,7 @@ private string GetToStringFrom(Exception exception) [Ignore("Lucene.NET does not support Thread.Interrupt(). See https://github.com/apache/lucenenet/issues/526.")] public virtual void TestThreadInterrupt() { - TransactionlThreadInterrupt t = new TransactionlThreadInterrupt(); + TransactionalThreadInterrupt t = new TransactionalThreadInterrupt(); t.IsBackground = true; t.Start(); @@ -274,11 +274,11 @@ public virtual void TestThreadInterrupt() [Ignore("Lucene.NET does not support Thread.Interrupt(). See https://github.com/apache/lucenenet/issues/526.")] public virtual void TestTwoThreadsInterrupt() { - TransactionlThreadInterrupt t1 = new TransactionlThreadInterrupt(); + TransactionalThreadInterrupt t1 = new TransactionalThreadInterrupt(); t1.IsBackground = true; t1.Start(); - TransactionlThreadInterrupt t2 = new TransactionlThreadInterrupt(); + TransactionalThreadInterrupt t2 = new TransactionalThreadInterrupt(); t2.IsBackground = true; t2.Start(); @@ -290,7 +290,7 @@ public virtual void TestTwoThreadsInterrupt() // TODO: would be nice to also sometimes interrupt the // CMS merge threads too ... Thread.Sleep(10); - TransactionlThreadInterrupt t = Random.NextBoolean() ? t1 : t2; + TransactionalThreadInterrupt t = Random.NextBoolean() ? t1 : t2; if (t.allowInterrupt) { i++;