Ejemplo n.º 1
0
        public void Setup()
        {
            _log = Devices.CreateLogDevice(TestContext.CurrentContext.TestDirectory + "\\FunctionPerSessionTests1.log", deleteOnClose: true);

            _faster = new FasterKV <int, RefCountedValue>(128, new LogSettings()
            {
                LogDevice = _log,
            });

            _adder   = new RefCountedAdder();
            _remover = new RefCountedRemover();
            _reader  = new RefCountedReader();
        }
Ejemplo n.º 2
0
        public void Setup()
        {
            TestUtils.DeleteDirectory(TestUtils.MethodTestDir, wait: true);
            _log = Devices.CreateLogDevice(TestUtils.MethodTestDir + "/FunctionPerSessionTests1.log", deleteOnClose: true);

            _faster = new FasterKV <int, RefCountedValue>(128, new LogSettings()
            {
                LogDevice = _log,
            });

            _adder   = new RefCountedAdder();
            _remover = new RefCountedRemover();
            _reader  = new RefCountedReader();
        }