Skip to content

Commit

Permalink
Support minimum buffer size of just 1 page!
Browse files Browse the repository at this point in the history
  • Loading branch information
badrishc committed Oct 5, 2019
1 parent ff27448 commit 8e42a74
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cs/test/FasterLogTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Licensed under the MIT license.

using System;
using System.IO;
using System.Linq;
using FASTER.core;
using NUnit.Framework;
Expand All @@ -17,17 +18,20 @@ internal class FasterLogTests
private FasterLog log;
private IDevice device;


[SetUp]
public void Setup()
{
if (File.Exists(TestContext.CurrentContext.TestDirectory + "\\fasterlog.log.commit"))
File.Delete(TestContext.CurrentContext.TestDirectory + "\\fasterlog.log.commit");
device = Devices.CreateLogDevice(TestContext.CurrentContext.TestDirectory + "\\fasterlog.log", deleteOnClose: true);
}

[TearDown]
public void TearDown()
{
device.Close();
if (File.Exists(TestContext.CurrentContext.TestDirectory + "\\fasterlog.log.commit"))
File.Delete(TestContext.CurrentContext.TestDirectory + "\\fasterlog.log.commit");
}

[Test]
Expand Down

0 comments on commit 8e42a74

Please sign in to comment.