diff --git a/internal/broker/system_exports_live_test.go b/internal/broker/system_exports_live_test.go index 48613678..2b53441e 100644 --- a/internal/broker/system_exports_live_test.go +++ b/internal/broker/system_exports_live_test.go @@ -116,8 +116,10 @@ func TestNatsTheSystemAccountsExportsReachMeshOnAReload(t *testing.T) { // 1147/ } } hears(connects, "connect") - // The answer to the connections request lists the open connections, the shop's among them. - reply, err := watchman.Request(BusConnzSubject, []byte(`{}`), 5*time.Second) + // The answer to the connections request lists the open connections, the shop's among them. The server names the + // account from the subject the export clamps (MESH), but leaves the user's name out unless the request asks for it + // with "auth": true (monitor.go ConnzOptions.Username), so the watchman asks so. + reply, err := watchman.Request(BusConnzSubject, []byte(`{"auth":true}`), 5*time.Second) if err != nil { t.Fatalf("mesh.bus.connz is not answered: %v", err) }