mirror of
https://github.com/logos-storage/logos-storage-nim-cs-dist-tests.git
synced 2026-01-05 23:13:08 +00:00
fixes transcript writing
This commit is contained in:
parent
dd888f30e3
commit
24a25292b8
@ -4,8 +4,11 @@
|
||||
{
|
||||
public static string Between(string input, string open, string close)
|
||||
{
|
||||
var openIndex = input.IndexOf(open) + open.Length;
|
||||
var openI = input.IndexOf(open);
|
||||
if (openI == -1) return input;
|
||||
var openIndex = openI + open.Length;
|
||||
var closeIndex = input.LastIndexOf(close);
|
||||
if (closeIndex == -1) return input;
|
||||
|
||||
return input.Substring(openIndex, closeIndex - openIndex);
|
||||
}
|
||||
|
||||
@ -37,7 +37,6 @@ namespace CodexTests
|
||||
public void SetupCodexDistTest()
|
||||
{
|
||||
writer = SetupTranscript();
|
||||
|
||||
}
|
||||
|
||||
[TearDown]
|
||||
@ -203,7 +202,7 @@ namespace CodexTests
|
||||
|
||||
Stopwatch.Measure(log, $"Transcript.FinalizeWriter", () =>
|
||||
{
|
||||
writer.IncludeFile(log.GetFullName());
|
||||
writer.IncludeFile(log.GetFullName() + ".log");
|
||||
writer.FinalizeWriter();
|
||||
});
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user