mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-19 09:54:30 +01:00
Add test CanCreateSqlitedb
This commit is contained in:
parent
1ceb5cb576
commit
7e073fb7e1
@ -2887,6 +2887,18 @@ noninventoryitem:
|
||||
return name;
|
||||
}
|
||||
|
||||
[Fact(Timeout = TestTimeout)]
|
||||
[Trait("Fast", "Fast")]
|
||||
public async Task CanCreateSqlitedb()
|
||||
{
|
||||
if (File.Exists("temp.db"))
|
||||
File.Delete("temp.db");
|
||||
// This test sqlite can migrate
|
||||
var builder = new DbContextOptionsBuilder<ApplicationDbContext>();
|
||||
builder.UseSqlite("Data Source=temp.db");
|
||||
await new ApplicationDbContext(builder.Options).Database.MigrateAsync();
|
||||
}
|
||||
|
||||
[Fact(Timeout = TestTimeout)]
|
||||
[Trait("Fast", "Fast")]
|
||||
public void CheckRatesProvider()
|
||||
|
Loading…
Reference in New Issue
Block a user