Skip to content

Commit 2fa9e82

Browse files
committed
fix: re-enable [SkipOnLowMemory] skip logic - Ubuntu needs it
1 parent b19de96 commit 2fa9e82

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

test/NumSharp.UnitTest/Utilities/SkipOnLowMemoryAttribute.cs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,7 @@ public SkipOnLowMemoryAttribute(int requiredMemoryGB = 8)
3232

3333
public override Task<bool> ShouldSkip(TestRegisteredContext context)
3434
{
35-
// DISABLED FOR TESTING - always run, never skip
36-
// This tests if CI can pass without memory-based skipping
3735
var availableMemoryGB = TestMemoryTracker.GetAvailableMemoryGB();
38-
Console.Error.WriteLine($"[SkipOnLowMemory] DISABLED - Running test. Available: {availableMemoryGB:F1}GB, Would need: {_requiredMemoryGB}GB");
39-
40-
return Task.FromResult(false); // Never skip
41-
42-
/* ORIGINAL CODE - re-enable after testing
4336
var shouldSkip = availableMemoryGB < _requiredMemoryGB;
4437

4538
if (shouldSkip)
@@ -59,6 +52,5 @@ public override Task<bool> ShouldSkip(TestRegisteredContext context)
5952
}
6053

6154
return Task.FromResult(shouldSkip);
62-
*/
6355
}
6456
}

0 commit comments

Comments
 (0)