completed stream request flow and tests. restructured other parts of the code.

This commit is contained in:
Jay
2026-05-11 21:55:51 -04:00
parent eec6b2ff69
commit 49ce2eb2ac
8 changed files with 1121 additions and 307 deletions
+3 -3
View File
@@ -22,7 +22,7 @@ func TestJournalCollector_SingleProducer(t *testing.T) {
jc.Enroll(ch)
ctx := component.MustNew(context.Background(), "test", "emitter")
comp, _ := component.Get(ctx)
comp := component.FromContext(ctx)
e1 := newTestEntry("peer1", comp)
e2 := newTestEntry("peer2", comp)
@@ -52,7 +52,7 @@ func TestJournalCollector_MultipleProducers(t *testing.T) {
jc.Enroll(ch2)
ctx := component.MustNew(context.Background(), "test", "emitter")
comp, _ := component.Get(ctx)
comp := component.FromContext(ctx)
ch1 <- newTestEntry("p1", comp)
ch2 <- newTestEntry("p2", comp)
@@ -138,7 +138,7 @@ func TestJournalCollector_ComponentIdentity(t *testing.T) {
mod := "test-mod"
path := "a.b.c"
ctx := component.MustNew(context.Background(), mod, path)
comp, _ := component.Get(ctx)
comp := component.FromContext(ctx)
entry := newTestEntry("peer-id", comp)
ch <- entry