vmeretail / subscriptionservice

Lightweight and easy to use library, which allows you to manage you delivering events from persistent subscriptions.
12 stars 0 forks source link

Trace log IOException #120

Closed StevenBlair123 closed 4 years ago

StevenBlair123 commented 4 years ago

Describe the bug If you try to create an integration testing using Inline data, you get the following error:

_System.IO.IOException : The filename, directory name, or volume label syntax is incorrect. : 'C:\home\forge\subscriptionservice\trace\20200330\CatchupSubscriptions_LastCheckpointStartsAtSelectedCheckpoint(totalEvents: 100, lastCheckPoint: 49)' Stack Trace:

To Reproduce Steps to reproduce the behavior:

Create a test similar this:

 [Theory]
[InlineData(100,49)]
public async Task CatchupSubscriptions_LastCheckpoint_StartsAtSelectedCheckpoint(Int32 totalEvents, Int32 lastCheckPoint)

Expected behavior The code for generating the log file should be robust to handle this.

StevenBlair123 commented 4 years ago

_SubscriptionService.IntegrationTests.CatchupSubscriptionsTests.CatchupSubscriptions_LastCheckpoint_StartsAtSelectedCheckpoint(totalEvents: 100, lastCheckPoint: 49) Source: CatchupSubscriptionsTests.cs line 359 Duration: 1 ms

Message: System.IO.IOException : The filename, directory name, or volume label syntax is incorrect. : 'C:\home\forge\subscriptionservice\trace\20200330\CatchupSubscriptions_LastCheckpointStartsAtSelectedCheckpoint(totalEvents: 100, lastCheckPoint: 49)' Stack Trace: FileSystem.CreateDirectory(String fullPath, Byte[] securityDescriptor) Directory.CreateDirectory(String path) DockerHelper.StartContainersForScenarioRun(String testname) line 199 CatchupSubscriptionsTests.ctor(TestsFixture data, ITestOutputHelper output) line 92