-
Notifications
You must be signed in to change notification settings - Fork 1k
/
SqliteJournalPerfSpec.cs
46 lines (42 loc) · 1.93 KB
/
SqliteJournalPerfSpec.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
//-----------------------------------------------------------------------
// <copyright file="SqliteJournalPerfSpec.cs" company="Akka.NET Project">
// Copyright (C) 2009-2021 Lightbend Inc. <http://www.lightbend.com>
// Copyright (C) 2013-2021 .NET Foundation <https://github.com/akkadotnet/akka.net>
// </copyright>
//-----------------------------------------------------------------------
using Akka.Configuration;
using Akka.Persistence.TestKit.Performance;
using Akka.Util.Internal;
using Xunit.Abstractions;
namespace Akka.Persistence.Sqlite.Tests.Performance
{
// Skip performance test. Commented out for now, we'll add a specific environment variable controlled skipable fact later
/*
public class SqliteJournalPerfSpec : JournalPerfSpec
{
private static AtomicCounter counter = new AtomicCounter(0);
public SqliteJournalPerfSpec(ITestOutputHelper output)
: base(CreateSpecConfig("Filename=file:memdb-journal-" + counter.IncrementAndGet() + ".db;Mode=Memory;Cache=Shared"), "SqliteJournalSpec", output)
{
}
private static Config CreateSpecConfig(string connectionString)
{
return ConfigurationFactory.ParseString(@"
akka.persistence {
publish-plugin-commands = on
journal {
plugin = ""akka.persistence.journal.sqlite""
sqlite {
class = ""Akka.Persistence.Sqlite.Journal.SqliteJournal, Akka.Persistence.Sqlite""
plugin-dispatcher = ""akka.actor.default-dispatcher""
table-name = event_journal
metadata-table-name = journal_metadata
auto-initialize = on
connection-string = """ + connectionString + @"""
}
}
}");
}
}
*/
}