Skip to content

Commit

Permalink
Fix spelling of TransactionalThreadInterrupt class
Browse files Browse the repository at this point in the history
  • Loading branch information
paulirwin committed Feb 25, 2024
1 parent 956c280 commit a4b5a61
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -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();

Expand Down Expand Up @@ -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();

Expand All @@ -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++;
Expand Down

0 comments on commit a4b5a61

Please sign in to comment.