From ee6d7c284da93a710f1e7d8582176b448bda12dc Mon Sep 17 00:00:00 2001 From: jochen Date: Thu, 12 Nov 2026 15:40:10 +0100 Subject: [PATCH] The carried-switch test names no real node or address (review round 1) --- modules/claude-licence-manager/cmd/tools/tools_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/claude-licence-manager/cmd/tools/tools_test.go b/modules/claude-licence-manager/cmd/tools/tools_test.go index 15c03e577..0245e9895 100644 --- a/modules/claude-licence-manager/cmd/tools/tools_test.go +++ b/modules/claude-licence-manager/cmd/tools/tools_test.go @@ -233,17 +233,17 @@ func TestSwitchesAnswersBothCauses(t *testing.T) { // licence) and is answered with `to` and `consumers`, and found by them. func TestSwitchesAnswersCarriedEntries(t *testing.T) { rt := newRuntime(t) - rt.seedLog(licences.EntryAudit, "switched", map[string]any{"at": "2026-11-11T21:10:33Z", "consumer": "novox", - "licence": "d", "from": "c", "by": "jschoubben@novox.be"}) + rt.seedLog(licences.EntryAudit, "switched", map[string]any{"at": "2026-11-11T21:10:33Z", "consumer": "n1", + "licence": "d@example.org", "from": "c@example.org", "by": "a@example.org"}) r := rt.reader() - for _, args := range []map[string]any{nil, {"consumer": "novox"}, {"licence": "d"}} { + for _, args := range []map[string]any{nil, {"consumer": "n1"}, {"licence": "d@example.org"}} { got := run(t, r, "licences_switches", args).([]any) if len(got) != 1 { t.Fatalf("%v: %v", args, got) } e := got[0].(map[string]any) - if e["to"] != "d" || e["from"] != "c" || e["by"] != "jschoubben@novox.be" || - len(e["consumers"].([]any)) != 1 || e["consumers"].([]any)[0] != "novox" { + if e["to"] != "d@example.org" || e["from"] != "c@example.org" || e["by"] != "a@example.org" || + len(e["consumers"].([]any)) != 1 || e["consumers"].([]any)[0] != "n1" { t.Fatalf("%v: %v", args, e) } }