Skip to content

Commit 23bc285

Browse files
committed
Refactor backend operation tests to return Task instead of async Task for improved consistency
1 parent a700842 commit 23bc285

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

tests/NLWebNet.Tests/Integration/BackendOperationTests.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public async Task BackendOperation_MockDataBackend_AllOperationsWork()
9898
/// Tests backend manager operations with multiple backends
9999
/// </summary>
100100
[TestMethod]
101-
public async Task BackendOperation_BackendManager_ManagesBackendsCorrectly()
101+
public Task BackendOperation_BackendManager_ManagesBackendsCorrectly()
102102
{
103103
var backendManager = _serviceProvider.GetRequiredService<IBackendManager>();
104104

@@ -138,6 +138,8 @@ public async Task BackendOperation_BackendManager_ManagesBackendsCorrectly()
138138
// This test verifies the backend manager can coordinate query execution
139139
// The actual implementation details depend on the specific backend manager implementation
140140
Console.WriteLine("✓ BackendManager operations validated");
141+
142+
return Task.CompletedTask;
141143
}
142144

143145
/// <summary>

tests/NLWebNet.Tests/Integration/MultiBackendIntegrationTests.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ public async Task EndToEnd_MultiBackendConsistency_ResultsAreConsistent()
263263
/// Tests backend capability verification across multiple backends
264264
/// </summary>
265265
[TestMethod]
266-
public async Task EndToEnd_BackendCapabilities_AreAccessibleAndValid()
266+
public Task EndToEnd_BackendCapabilities_AreAccessibleAndValid()
267267
{
268268
var services = new ServiceCollection();
269269
services.AddNLWebNetMultiBackend(options =>
@@ -303,5 +303,7 @@ public async Task EndToEnd_BackendCapabilities_AreAccessibleAndValid()
303303

304304
Console.WriteLine($"✓ Backend '{backend.Id}' capabilities validated");
305305
}
306+
307+
return Task.CompletedTask;
306308
}
307309
}

0 commit comments

Comments
 (0)