Skip to content

Commit b5f3635

Browse files
committed
fix: reverts array size due to framework memory alloc
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
1 parent e313ef4 commit b5f3635

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/abstractions/Store/InMemoryBackingStoreTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ public void TestsBackingStoreNestedInvocationCounts()
467467

468468
Assert.Equal(2, invocationCount);// only called twice
469469
}
470-
private readonly int[] _testArray = Enumerable.Range(0, 1000000000).ToArray();
470+
private readonly int[] _testArray = Enumerable.Range(0, 100000000).ToArray();
471471
[Fact]
472472
public void TestsLargeArrayPerformsWell()
473473
{
@@ -478,12 +478,12 @@ public void TestsLargeArrayPerformsWell()
478478
var stopWatch = Stopwatch.StartNew();
479479
testBackingStore.Set("email", _testArray);
480480
stopWatch.Stop();
481-
Assert.InRange(stopWatch.ElapsedMilliseconds, 0, 2);
481+
Assert.InRange(stopWatch.ElapsedMilliseconds, 0, 1);
482482
stopWatch.Restart();
483483
testBackingStore.InitializationCompleted = true;
484484
stopWatch.Stop();
485485
// Assert
486-
Assert.InRange(stopWatch.ElapsedMilliseconds, 0, 2);
486+
Assert.InRange(stopWatch.ElapsedMilliseconds, 0, 1);
487487
}
488488

489489
/// <summary>

0 commit comments

Comments
 (0)