Skip to content

Commit

Permalink
Test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
w1am committed Jan 7, 2025
1 parent a0dd296 commit 46ade80
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
strategy:
fail-fast: false
matrix:
framework: [ net9.0 ]
framework: [ net8.0 ]
os: [ ubuntu-latest ]
configuration: [ release ]
runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -53,6 +53,7 @@ jobs:
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
8.0.x
9.0.x
- name: Run Tests
shell: bash
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ protected KurrentPermanentFixture(ConfigureFixture configure) {

public ILogger Log => Logger;

public ITestService Service { get; }
public ITestService Service { get; }
public KurrentFixtureOptions Options { get; }
public Faker Faker { get; } = new Faker();
public Faker Faker { get; } = new Faker();

public Version EventStoreVersion { get; private set; } = null!;
public bool EventStoreHasLastStreamPosition { get; private set; }
Expand Down Expand Up @@ -87,13 +87,12 @@ public async Task InitializeAsync() {
await ContainerSemaphore.WaitAsync();
try {
await Service.Start();
EventStoreVersion = GetEventStoreVersion();
EventStoreHasLastStreamPosition = (EventStoreVersion?.Major ?? int.MaxValue) >= 21;
} finally {
ContainerSemaphore.Release();
}

EventStoreVersion = GetEventStoreVersion();
EventStoreHasLastStreamPosition = (EventStoreVersion?.Major ?? int.MaxValue) >= 21;

await WarmUpGatekeeper.WaitAsync();

try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ protected KurrentTemporaryFixture(ConfigureFixture configure) {

public ILogger Log => Logger;

public ITestService Service { get; }
public ITestService Service { get; }
public KurrentFixtureOptions Options { get; }
public Faker Faker { get; } = new Faker();
public Faker Faker { get; } = new Faker();

public Version EventStoreVersion { get; private set; } = null!;
public bool EventStoreHasLastStreamPosition { get; private set; }
Expand Down Expand Up @@ -89,13 +89,12 @@ public async Task InitializeAsync() {
await ContainerSemaphore.WaitAsync();
try {
await Service.Start();
EventStoreVersion = GetEventStoreVersion();
EventStoreHasLastStreamPosition = (EventStoreVersion?.Major ?? int.MaxValue) >= 21;
} finally {
ContainerSemaphore.Release();
}

EventStoreVersion = GetEventStoreVersion();
EventStoreHasLastStreamPosition = (EventStoreVersion?.Major ?? int.MaxValue) >= 21;

await WarmUpGatekeeper.WaitAsync();

try {
Expand Down

0 comments on commit 46ade80

Please sign in to comment.