Give every module the announcement test, on an exported test bus (issue 1790, S11, ADR 0495 §5)

announcetest.Check starts the module against a bus of the test's own and holds its
announcement equal to what its code declares; testbus leaves internal/ so a module's
own integration tests can start it.
This commit is contained in:
2026-10-22 17:43:07 +02:00
parent 57d2f31f05
commit 33387ac3e5
7 changed files with 158 additions and 4 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ import (
)
// selfSignedServer is a nats-server with JetStream and TLS, self-signed, for this test alone (mirroring
// go/internal/testbus.Start, with a certificate added since testbus has none): a mesh's bus presents its own
// go/testbus.Start, with a certificate added since testbus has none): a mesh's bus presents its own
// certificate in no public trust store, which is exactly what a process pins to (ADR 0436 clause 4).
func selfSignedServer(t *testing.T) (url, fingerprint string) {
t.Helper()