align with honeybee updates. change ID to URL semantics.

This commit is contained in:
Jay
2026-06-08 09:43:19 -04:00
parent 69f9219819
commit 42e6e2af83
10 changed files with 88 additions and 73 deletions
+4 -4
View File
@@ -75,7 +75,7 @@ func TestEnvoy_IsConnected(t *testing.T) {
}()
events <- PoolEvent{
ID: url, Kind: EventConnected, At: time.Now()}
URL: url, Kind: EventConnected, At: time.Now()}
Eventually(t, func() bool {
return envoy.IsConnected()
@@ -101,7 +101,7 @@ func TestEnvoy_Events(t *testing.T) {
}()
events <- PoolEvent{
ID: url, Kind: EventConnected, At: time.Now()}
URL: url, Kind: EventConnected, At: time.Now()}
Eventually(t, func() bool {
mu.RLock()
@@ -133,12 +133,12 @@ func TestEnvoy_Inbox(t *testing.T) {
}()
inbox <- InboxMessage{
ID: url,
URL: url,
Data: envelope.EncloseEvent([]byte("{}")),
ReceivedAt: time.Now(),
}
inbox <- InboxMessage{
ID: url,
URL: url,
Data: envelope.EncloseOK("id", true, "ok"),
ReceivedAt: time.Now(),
}