From 9b77f82c8b291dd9d4b378c989d368ad84bdcc1b Mon Sep 17 00:00:00 2001 From: jochen Date: Mon, 16 Nov 2026 09:40:47 +0100 Subject: [PATCH] process: the integration test of the seat's callers follows A-434 (an unproven caller of a read definition is admitted) Builds: design 47 G A-434 --- go/process/call_integration_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/go/process/call_integration_test.go b/go/process/call_integration_test.go index 4b0a90f3..a1a22ff8 100644 --- a/go/process/call_integration_test.go +++ b/go/process/call_integration_test.go @@ -349,9 +349,9 @@ func TestAnswerSeatServesVerbsWithTheProvedCallerInOneQueueGroup(t *testing.T) { if err != nil || r.Result["caller"] != "novox.mesh-delivery-builder" || r.Result["body"] != `{"x":1}` || r.Node != "novox" { t.Fatalf("a caller-named call: %+v, %v", r, err) } - // An unproven caller is refused before the handler runs (design 47 G ยง610; lead answers A-165, A-179, A-186). + // An unproven caller is admitted while the definition is read (A-434, A-435). r, err = ask("mesh.seat.broker-seat.tool.ping") - if err != nil || r.Result != nil || !strings.Contains(r.Error, "broker-seat.ping takes no unproven caller") { + if err != nil || r.Result["caller"] != "" || r.Error != "" { t.Fatalf("an unproven call: %+v, %v", r, err) } if _, err := ask("mesh.seat.broker-seat.call.ping.novox~mesh-delivery-builder"); err != nil { @@ -359,8 +359,8 @@ func TestAnswerSeatServesVerbsWithTheProvedCallerInOneQueueGroup(t *testing.T) { } total := int32(0) heard.Range(func(_, v any) bool { total += atomic.LoadInt32(v.(*int32)); return true }) - if total != 2 { - t.Errorf("two proven calls were answered %d times in all, want once each (one queue group) and the unproven none", total) + if total != 3 { + t.Errorf("three calls were answered %d times in all, want once each (one queue group)", total) } if r, err = ask("mesh.seat.broker-seat.call.fail.x"); err != nil || r.Error != "refused: not yours" { t.Errorf("a handler's error: %+v, %v", r, err)