Skip to content

Commit

Permalink
Fix repeated events in dotnet client watching. (#289)
Browse files Browse the repository at this point in the history
  • Loading branch information
jankaspar authored Dec 20, 2019
1 parent 0ce6a3c commit 15a3a4d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion client/DotNet/Armada.Client.Test/Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public async Task TestWatchingEvents()
Task.Run(() => client.WatchEvents(jobSet, null, cts.Token, m => eventCount++, e => throw e));
await Task.Delay(TimeSpan.FromMinutes(2));
cts.Cancel();
Assert.That(eventCount, Is.GreaterThan(0));
Assert.That(eventCount, Is.EqualTo(4));
}
}

Expand Down
1 change: 1 addition & 0 deletions client/DotNet/Armada.Client/Client.cs
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ public async Task WatchEvents(
this.JsonSerializerSettings);

onMessage(eventMessage);
fromMessageId = eventMessage.Result?.Id ?? fromMessageId;
}
}
catch (IOException)
Expand Down

0 comments on commit 15a3a4d

Please sign in to comment.