Skip to content

Commit 95a8969

Browse files
committed
Make the connection string unique per execution
1 parent 2322da2 commit 95a8969

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AutoMapper.Collection.EntityFramework.Tests/EntityFramworkTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public void Should_Persist_To_Insert()
6969
public class DB : DbContext
7070
{
7171
public DB()
72-
: base(new SqlCeConnection("Data Source=MyDatabase.sdf;Persist Security Info=False;"), contextOwnsConnection: true)
72+
: base(new SqlCeConnection($"Data Source={Guid.NewGuid()}.sdf;Persist Security Info=False;"), contextOwnsConnection: true)
7373
{
7474
Things.RemoveRange(Things);
7575
SaveChanges();

0 commit comments

Comments
 (0)