Merge branch 'main' of https://git.stella-ops.org/stella-ops.org/git.stella-ops.org
This commit is contained in:
@@ -189,17 +189,17 @@ public sealed class RevocationLedgerTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void Clear_RemovesAllEntries()
|
||||
public async Task Clear_RemovesAllEntries()
|
||||
{
|
||||
// Arrange
|
||||
_ledger.RecordAsync(CreateTestEntry(RevocationTypes.Signer, "s1")).GetAwaiter().GetResult();
|
||||
_ledger.RecordAsync(CreateTestEntry(RevocationTypes.Signer, "s2")).GetAwaiter().GetResult();
|
||||
await _ledger.RecordAsync(CreateTestEntry(RevocationTypes.Signer, "s1"));
|
||||
await _ledger.RecordAsync(CreateTestEntry(RevocationTypes.Signer, "s2"));
|
||||
|
||||
// Act
|
||||
_ledger.Clear();
|
||||
|
||||
// Assert
|
||||
var seqNo = _ledger.GetLatestSeqNoAsync().GetAwaiter().GetResult();
|
||||
var seqNo = await _ledger.GetLatestSeqNoAsync();
|
||||
seqNo.Should().Be(0);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user