docs(lighthouse,postcard,signpost): compile README Go examples via src= (quick-261118-qsd)

This commit is contained in:
Jakub Zych
2026-11-18 20:13:14 +01:00
parent a2551d83d7
commit 1e56d750ef
7 changed files with 482 additions and 150 deletions

View File

@@ -62,7 +62,9 @@ func TestFromSelectsDriver(t *testing.T) {
}
t.Run("unknown_lists_registered", func(t *testing.T) {
_, err := From(configApp(t, map[string]any{"realtime.driver": "nope"}))
if err == nil || !strings.Contains(err.Error(), `unknown realtime.driver "nope"`) || !strings.Contains(err.Error(), "acme-nil-driver, log, memory, null") {
// example_test.go imports lighthouse/centrifugo, so "centrifugo" may
// sit between the drivers this package's tests register.
if err == nil || !strings.Contains(err.Error(), `unknown realtime.driver "nope"`) || !strings.Contains(err.Error(), "acme-nil-driver, ") || !strings.Contains(err.Error(), "log, memory, null") {
t.Fatalf("err = %v", err)
}
})