You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here's a test that fails, not quite sure the best way to solve this...
[Fact]
public async Task Enumerate_empty_object_store()
{
var cts = new CancellationTokenSource(TimeSpan.FromSeconds(10));
var cancellationToken = cts.Token;
await using var server = NatsServer.StartJS();
await using var nats = server.CreateClientConnection();
var js = new NatsJSContext(nats);
var ob = new NatsObjContext(js);
var objStore = await ob.CreateObjectStoreAsync(new NatsObjConfig("emptyStore"), cancellationToken);
await foreach (var stream in objStore.ListAsync(cancellationToken: cancellationToken))
{
}
}
Observed behavior
As per title, if an object store bucket has no entries, then calling ListAsync hangs and doesn't return.
Expected behavior
Enumerator should return
Server and client version
Client : .Net 2.3.3
Server : Various
Host environment
No response
Steps to reproduce
No response
The text was updated successfully, but these errors were encountered: