File tree Expand file tree Collapse file tree 1 file changed +4
-9
lines changed
Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change 11using System . Threading . Tasks ;
2- using Xunit ;
32using System . Threading ;
43using Xunit ;
54
65namespace OpenFeature . Tests ;
76
87public class ClearOpenFeatureInstanceFixture : IAsyncLifetime
98{
10- protected readonly CancellationToken TestCancellationToken ;
9+ protected CancellationToken TestCancellationToken ;
1110
12- protected ClearOpenFeatureInstanceFixture ( )
11+ public ValueTask InitializeAsync ( )
1312 {
1413 this . TestCancellationToken = TestContext . Current . CancellationToken ;
15- }
16-
17- public Task InitializeAsync ( )
18- {
1914 Api . ResetApi ( ) ;
2015
21- return Task . CompletedTask ;
16+ return ValueTask . CompletedTask ;
2217 }
2318
2419 // Make sure the singleton is cleared between tests
25- public async Task DisposeAsync ( )
20+ public async ValueTask DisposeAsync ( )
2621 {
2722 await Api . Instance . ShutdownAsync ( ) . ConfigureAwait ( false ) ;
2823 }
You can’t perform that action at this time.
0 commit comments