Skip to content

Commit dc84e00

Browse files
authored
bump timeout higher, value shouldn't matter unless latch isn't triggered (#276)
* bump timeout higher, value shouldn't matter unless latch isn't triggered * reduce timeout
1 parent 87fd963 commit dc84e00

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/Exceptionless.Tests/Storage/PersistedDictionaryTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public void WillSaveOnce() {
3636

3737
dict["test"] = "test";
3838
Assert.Equal(11, dict.Count);
39-
success = latch.Wait(500);
39+
success = latch.Wait(1000);
4040
Assert.True(success, "Failed to save dictionary.");
4141
Assert.True(storage.Exists("test.json"));
4242
}

test/Exceptionless.Tests/Utility/CountDownLatch.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public CountDownLatch(int count) {
1212

1313
public void Reset(int count) {
1414
if (count < 0)
15-
throw new ArgumentOutOfRangeException();
15+
throw new ArgumentOutOfRangeException(nameof(count));
1616
_remaining = count;
1717
_event = new ManualResetEventSlim(false);
1818
if (_remaining == 0)

0 commit comments

Comments
 (0)