fix(site-runtime): NativeAlarmActor retries a lost subscribe response, not only a failed one (S4)
This commit is contained in:
@@ -378,4 +378,18 @@ public class NativeAlarmActorTests : TestKit, IDisposable
|
||||
File.Delete(_dbFile);
|
||||
}
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void LostSubscribeResponse_ResendsSubscribe()
|
||||
{
|
||||
// S4: a LOST subscribe response (no reply at all) must be re-sent, not only
|
||||
// a failure reply. The response-timeout arm fires at 2× the retry interval.
|
||||
var options = new SiteRuntimeOptions { NativeAlarmRetryIntervalMs = 200 };
|
||||
var dcl = CreateTestProbe();
|
||||
Spawn(CreateTestProbe().Ref, dcl.Ref, options);
|
||||
|
||||
dcl.ExpectMsg<SubscribeAlarmsRequest>();
|
||||
// Swallow the response entirely — the actor must still re-subscribe.
|
||||
dcl.ExpectMsg<SubscribeAlarmsRequest>(TimeSpan.FromSeconds(5));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user