Skip to content
This repository was archived by the owner on Sep 3, 2024. It is now read-only.

Commit 49269f6

Browse files
these should also be disposable
1 parent 33c0387 commit 49269f6

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

src/SqlStreamStore.HAL.Tests/SqlStreamStoreHalMiddlewareFixture.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ public SqlStreamStoreHalMiddlewareFixture()
2828
public void Dispose()
2929
{
3030
StreamStore.Dispose();
31+
_inner.Dispose();
3132
}
3233

3334
public Task<AppendResult> WriteNMessages(string streamId, int n)

src/SqlStreamStore.HAL.Tests/StreamMessageTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
namespace SqlStreamStore.HAL.Tests
22
{
3+
using System;
34
using System.Net;
45
using System.Threading.Tasks;
56
using Shouldly;
67
using Xunit;
78

8-
public class StreamMessageTests
9+
public class StreamMessageTests : IDisposable
910
{
1011
public StreamMessageTests()
1112
{
@@ -55,6 +56,5 @@ public async Task read_single_message_does_not_exist_stream()
5556
resource.ShouldLink("streamStore:feed", HeadOfStream);
5657
}
5758
}
58-
5959
}
6060
}

0 commit comments

Comments
 (0)