Skip to content

Commit 405339e

Browse files
committed
Make tests Nightly instead of Slow
1 parent e2f137d commit 405339e

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/Lucene.Net.Tests.Analysis.Common/Support/Analysis/Util/TestOpenStringBuilderBufferWriter.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ public void GetMemory_InitSizeCtor_WithSizeHint(int sizeHint)
302302
// LUCENENET specific: This test allocates a very large buffer to verify that Advance()
303303
// performs its bounds check purely arithmetically (m_len vs. m_buf.Length); Advance() itself
304304
// never touches buffer memory, and WriteData only touches the first 1,000 chars. If the
305-
// allocation fails with OutOfMemoryException, the test is a no-op. Marked [Slow] due to the
305+
// allocation fails with OutOfMemoryException, the test is a no-op. Marked [Nightly] due to the
306306
// large allocation.
307307
//
308308
// NOTE: The upstream ArrayBufferWriter test gated this on Windows/macOS, and so do we. The
@@ -311,7 +311,7 @@ public void GetMemory_InitSizeCtor_WithSizeHint(int sizeHint)
311311
// zero-initialization of the array touches every page, which can invoke the OOM killer (an
312312
// uncatchable SIGKILL, not an OutOfMemoryException) and tear down the whole test run.
313313
[Test]
314-
[Slow]
314+
[Nightly]
315315
public void InvalidAdvance_Large()
316316
{
317317
// LUCENENET specific: skip on Linux (see note above); the large allocation can be killed

src/Lucene.Net.Tests/Support/Analysis/TokenAttributes/TestCharTermAttributeImplBufferWriter.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,15 +248,15 @@ public void GetMemory_ExceedMaximumBufferSize_WithSmallStartingSize()
248248
// performs its bounds check purely arithmetically (termLength vs. termBuffer.Length);
249249
// Advance() itself never touches buffer memory, and WriteData only touches the first 1,000
250250
// chars. If the allocation fails with OutOfMemoryException, the test is a no-op. Marked
251-
// [Slow] due to the large allocation.
251+
// [Nightly] due to the large allocation.
252252
//
253253
// NOTE: The upstream ArrayBufferWriter test gated this on Windows/macOS, and so do we. The
254254
// risk is real on Linux but comes from the allocation itself, not from Advance(): under memory
255255
// overcommit the kernel may grant the large buffer optimistically, then the GC's
256256
// zero-initialization of the array touches every page, which can invoke the OOM killer (an
257257
// uncatchable SIGKILL, not an OutOfMemoryException) and tear down the whole test run.
258258
[Test]
259-
[Slow]
259+
[Nightly]
260260
public void InvalidAdvance_Large()
261261
{
262262
// LUCENENET specific: skip on Linux (see note above); the large allocation can be killed

0 commit comments

Comments
 (0)