-
-
Notifications
You must be signed in to change notification settings - Fork 450
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Isolating more troublesome tests in the stress tests project
- Loading branch information
1 parent
dba2328
commit 0d9d5a7
Showing
9 changed files
with
83 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 0 additions & 24 deletions
24
src/CoreTests/Internal/Generated/Stores/IFirstStoreImplementation1763841752.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using Marten.Services; | ||
using Npgsql; | ||
|
||
namespace Marten.Testing; | ||
|
||
public class RecordingLogger: IMartenSessionLogger | ||
{ | ||
public NpgsqlCommand LastCommand; | ||
public Exception LastException; | ||
public readonly IList<IChangeSet> Commits = new List<IChangeSet>(); | ||
public IChangeSet LastCommit { get; set; } | ||
|
||
public IDocumentSession LastSession { get; set; } | ||
|
||
public int OnBeforeExecuted { get; set; } | ||
|
||
public void LogFailure(NpgsqlBatch batch, Exception ex) | ||
{ | ||
|
||
} | ||
|
||
public void LogFailure(Exception ex, string message) | ||
{ | ||
|
||
} | ||
|
||
public void RecordSavedChanges(IDocumentSession session, IChangeSet commit) | ||
{ | ||
LastSession = session; | ||
LastCommit = commit.Clone(); | ||
|
||
Commits.Add(commit); | ||
} | ||
|
||
public void OnBeforeExecute(NpgsqlCommand command) | ||
{ | ||
OnBeforeExecuted++; | ||
} | ||
|
||
public void OnBeforeExecute(NpgsqlBatch batch) | ||
{ | ||
|
||
} | ||
|
||
public void LogSuccess(NpgsqlCommand command) | ||
{ | ||
LastCommand = command; | ||
} | ||
|
||
public void LogFailure(NpgsqlCommand command, Exception ex) | ||
{ | ||
LastCommand = command; | ||
LastException = ex; | ||
} | ||
|
||
public void LogSuccess(NpgsqlBatch batch) | ||
{ | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters