File tree 3 files changed +10
-11
lines changed
test/Kurrent.Client.Tests.Common/Fixtures
3 files changed +10
-11
lines changed Original file line number Diff line number Diff line change 25
25
strategy :
26
26
fail-fast : false
27
27
matrix :
28
- framework : [ net9 .0 ]
28
+ framework : [ net8 .0 ]
29
29
os : [ ubuntu-latest ]
30
30
configuration : [ release ]
31
31
runs-on : ${{ matrix.os }}
53
53
uses : actions/setup-dotnet@v3
54
54
with :
55
55
dotnet-version : |
56
+ 8.0.x
56
57
9.0.x
57
58
- name : Run Tests
58
59
shell : bash
Original file line number Diff line number Diff line change @@ -37,9 +37,9 @@ protected KurrentPermanentFixture(ConfigureFixture configure) {
37
37
38
38
public ILogger Log => Logger ;
39
39
40
- public ITestService Service { get ; }
40
+ public ITestService Service { get ; }
41
41
public KurrentFixtureOptions Options { get ; }
42
- public Faker Faker { get ; } = new Faker ( ) ;
42
+ public Faker Faker { get ; } = new Faker ( ) ;
43
43
44
44
public Version EventStoreVersion { get ; private set ; } = null ! ;
45
45
public bool EventStoreHasLastStreamPosition { get ; private set ; }
@@ -87,13 +87,12 @@ public async Task InitializeAsync() {
87
87
await ContainerSemaphore . WaitAsync ( ) ;
88
88
try {
89
89
await Service . Start ( ) ;
90
+ EventStoreVersion = GetEventStoreVersion ( ) ;
91
+ EventStoreHasLastStreamPosition = ( EventStoreVersion ? . Major ?? int . MaxValue ) >= 21 ;
90
92
} finally {
91
93
ContainerSemaphore . Release ( ) ;
92
94
}
93
95
94
- EventStoreVersion = GetEventStoreVersion ( ) ;
95
- EventStoreHasLastStreamPosition = ( EventStoreVersion ? . Major ?? int . MaxValue ) >= 21 ;
96
-
97
96
await WarmUpGatekeeper . WaitAsync ( ) ;
98
97
99
98
try {
Original file line number Diff line number Diff line change @@ -40,9 +40,9 @@ protected KurrentTemporaryFixture(ConfigureFixture configure) {
40
40
41
41
public ILogger Log => Logger ;
42
42
43
- public ITestService Service { get ; }
43
+ public ITestService Service { get ; }
44
44
public KurrentFixtureOptions Options { get ; }
45
- public Faker Faker { get ; } = new Faker ( ) ;
45
+ public Faker Faker { get ; } = new Faker ( ) ;
46
46
47
47
public Version EventStoreVersion { get ; private set ; } = null ! ;
48
48
public bool EventStoreHasLastStreamPosition { get ; private set ; }
@@ -89,13 +89,12 @@ public async Task InitializeAsync() {
89
89
await ContainerSemaphore . WaitAsync ( ) ;
90
90
try {
91
91
await Service . Start ( ) ;
92
+ EventStoreVersion = GetEventStoreVersion ( ) ;
93
+ EventStoreHasLastStreamPosition = ( EventStoreVersion ? . Major ?? int . MaxValue ) >= 21 ;
92
94
} finally {
93
95
ContainerSemaphore . Release ( ) ;
94
96
}
95
97
96
- EventStoreVersion = GetEventStoreVersion ( ) ;
97
- EventStoreHasLastStreamPosition = ( EventStoreVersion ? . Major ?? int . MaxValue ) >= 21 ;
98
-
99
98
await WarmUpGatekeeper . WaitAsync ( ) ;
100
99
101
100
try {
You can’t perform that action at this time.
0 commit comments