host: tag sim requests so a late arrival is not a later step's
TestLinkSimHomeSide failed seeds 160 and 246 on CI. Under four-core contention locally (four runs pinned to cores 0-3) seeds 233, 376 and 489 failed the same way: an SSE open answered 502 when an unpublish replaced the connection under it, its home goroutine still delivered it to the app it was published to, after the step had counted, and the next step's count (per-app request totals) took it for its own: "reached shop (404)" for an unpublished name, "reached more than one". Each request now carries an X-Linksim-Req tag that the apps record, so a step counts only its own request. A request answered by no app stays pending; if it reaches an app later, it must have been answered 0, 502 or 504 (the hub gave up on it) and reached a target its name was published to at some moment since it was sent. Any other late arrival fails. TestLinkSimHomeLateArrivals holds the oracle to that, both ways. The failure message now names the first violated check on its first line, the only line the gate's failure summary keeps; the step trace follows in the full log.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2 files changed,
+196
−50
internal/host/link_e2e_test.go+4 −1internal/host/link_sim_test.go+192 −49
CI passed — run details
diff --git a/internal/host/link_e2e_test.go b/internal/host/link_e2e_test.go| index 8533cef45..81be428c2 100644 |
| --- a/internal/host/link_e2e_test.go |
| +++ b/internal/host/link_e2e_test.go |
| @@ -76,6 +76,9 @@ func linkPublicHost(name string) string { return name + "." + linkServingAcct + |
| // linkSeen is what a home app saw of one request. |
| type linkSeen struct { |
| Method, Path, Host, XFH, XFP, XFF, LinkApp, ImportVerify, Purge, Cookie string |
| + // SimReq is the simulation's request tag (linkSimReqHeader), "" for |
| + // every other test. |
| + SimReq string |
| } |
| // linkTestApp is a home app on a Unix socket. It records every request and |
| @@ -121,7 +124,7 @@ func (a *linkTestApp) ServeHTTP(w http.ResponseWriter, r *http.Request) { |
| a.seen = append(a.seen, linkSeen{Method: r.Method, Path: r.URL.Path, Host: r.Host, |
| XFH: r.Header.Get("X-Forwarded-Host"), XFP: r.Header.Get("X-Forwarded-Proto"), XFF: strings.Join(r.Header.Values("X-Forwarded-For"), ", "), |
| LinkApp: strings.Join(r.Header.Values(tunnelclient.LinkAppHeader), ","), ImportVerify: r.Header.Get(edge.ImportVerifyHeader), |
| - Purge: r.Header.Get(edge.PurgeHeader), Cookie: r.Header.Get("Cookie")}) |
| + Purge: r.Header.Get(edge.PurgeHeader), Cookie: r.Header.Get("Cookie"), SimReq: r.Header.Get(linkSimReqHeader)}) |
| a.mu.Unlock() |
| originOK := func() bool { o := r.Header.Get("Origin"); return o != "" && o == "https://"+r.Host } |
| switch r.URL.Path { |
diff --git a/internal/host/link_sim_test.go b/internal/host/link_sim_test.go| index 0448594ed..f6a75599f 100644 |
| --- a/internal/host/link_sim_test.go |
| +++ b/internal/host/link_sim_test.go |
| @@ -16,6 +16,14 @@ package host |
| // moment it is sent, or by no app: a request sent after an unpublish of |
| // its name, or after a retarget away from an app, never reaches that |
| // app (linkHandler's per-request read; no tick needed); |
| +// - a request the hub gave up on (a 502 when the connection it went down |
| +// was replaced, or no answer) may still reach an app after its answer: |
| +// the home goroutine carrying it outlives the hub's wait. Each request |
| +// carries its own tag (linkSimReqHeader), so such a late arrival is |
| +// never counted as a later step's, and it must reach an app its name |
| +// was published to at some moment since it was sent (the home's read |
| +// happens inside that window). A late arrival after any other answer |
| +// fails; |
| // - every stream opened for a (name, account, app) that is no longer |
| // published ends within homeSimBound of the change that took it away |
| // (the link loop replaces the connection on conn_gen; Paul's choice 3), |
| @@ -146,6 +154,8 @@ func (st *homeSimStream) isEnded() bool { |
| // homeSimStats counts what a run exercised, so a pass is not vacuous. |
| type homeSimStats struct { |
| served, refused, refusedPublished, streams, revokedEnded, ticks, retargets int |
| + // late: requests answered by no app that reached one afterwards. |
| + late int |
| // unreloaded: ticks that left the home edge unreloaded; revokedUnreloaded: |
| // revoked streams those ticks checked. |
| unreloaded, revokedUnreloaded int |
| @@ -163,6 +173,26 @@ type homeSim struct { |
| streams []*homeSimStream |
| trace []string |
| fails []string |
| + // seed and nextReq make each request's tag, unique on the shared world. |
| + seed int64 |
| + nextReq int |
| + // pending: requests answered by no app, which may still reach one. |
| + pending []*homeSimReq |
| +} |
| + |
| +// linkSimReqHeader tags every request the home-side simulation sends, so |
| +// the apps' records say which request reached them. The hub and the home |
| +// pass it through like any other request header. |
| +const linkSimReqHeader = "X-Linksim-Req" |
| + |
| +// homeSimReq is a request (or open) whose answer came from no app. allowed |
| +// is every target its name was published to from the moment it was sent: |
| +// the home's per-request read, if the request gets that far, falls in that |
| +// window. |
| +type homeSimReq struct { |
| + id, what, name string |
| + status int |
| + allowed map[string]bool |
| } |
| func (s *homeSim) logf(format string, args ...any) { |
| @@ -185,35 +215,72 @@ func (s *homeSim) target(key string) homeSimTarget { |
| return homeSimTarget{} |
| } |
| -// counts is how many requests each target's app has seen. |
| -func (s *homeSim) counts() map[string]int { |
| - out := make(map[string]int, len(s.targets)) |
| - for _, tg := range s.targets { |
| - out[tg.key] = len(tg.test.requests()) |
| - } |
| - return out |
| +// tag is the next request's tag. |
| +func (s *homeSim) tag() string { |
| + s.nextReq++ |
| + return fmt.Sprintf("%d-%d", s.seed, s.nextReq) |
| } |
| -// reached is the one target whose app saw a request since before, "" for |
| -// none. More than one is a failure. |
| -func (s *homeSim) reached(before map[string]int, what string) string { |
| - got := "" |
| +// reached is the one target whose app saw the request tagged id, "" for |
| +// none. Seen more than once, or by more than one app, is a failure. |
| +func (s *homeSim) reached(id, what string) string { |
| + got, n := "", 0 |
| for _, tg := range s.targets { |
| - if n := len(tg.test.requests()); n > before[tg.key] { |
| - if got != "" || n > before[tg.key]+1 { |
| - s.failf("%s reached more than one request at the apps (%s and %s)", what, got, tg.key) |
| + for _, r := range tg.test.requests() { |
| + if r.SimReq != id { |
| + continue |
| + } |
| + n++ |
| + if got != "" && got != tg.key { |
| + s.failf("%s %s reached more than one app (%s and %s)", what, id, got, tg.key) |
| } |
| got = tg.key |
| } |
| } |
| + if n > 1 { |
| + s.failf("%s %s reached the apps %d times", what, id, n) |
| + } |
| return got |
| } |
| -// admitted checks that a request for name, sent while pub held what it |
| -// holds now, reached the published target or none. |
| -func (s *homeSim) admitted(name, reached, what string, status int) { |
| +// late checks the pending requests that have reached an app since their |
| +// answer. Only a request the hub gave up on (0: no answer; 502 or 504: the |
| +// connection went away under it) may arrive late, and only at a target its |
| +// name was published to at some moment since it was sent. |
| +func (s *homeSim) late() { |
| + kept := s.pending[:0] |
| + for _, p := range s.pending { |
| + got := s.reached(p.id, p.what) |
| + if got == "" { |
| + kept = append(kept, p) |
| + continue |
| + } |
| + s.stats.late++ |
| + s.logf("late: %s %s for %s (answered %d by no app) has since reached %s", p.what, p.id, p.name, p.status, got) |
| + // Rare (a few per run, under load); logged so a run shows them. |
| + s.t.Logf("late arrival: %s %s for %s, answered %d by no app, has since reached %s (allowed %v)", p.what, p.id, p.name, p.status, got, p.allowed) |
| + switch { |
| + case p.status != 0 && p.status != http.StatusBadGateway && p.status != http.StatusGatewayTimeout: |
| + s.failf("%s %s for %s was answered %d by no app, and reached %s after it", p.what, p.id, p.name, p.status, got) |
| + case !p.allowed[got]: |
| + s.failf("%s %s for %s reached %s after its answer (%d), and %s has not been published to %s at any moment since it was sent", |
| + p.what, p.id, p.name, got, p.status, p.name, got) |
| + } |
| + } |
| + s.pending = kept |
| +} |
| + |
| +// admitted checks that a request for name, tagged id and sent while pub |
| +// held what it holds now, reached the published target or none. One that |
| +// reached none is kept pending, in case it reaches an app later. |
| +func (s *homeSim) admitted(id, name, reached, what string, status int) { |
| want, published := s.pub[name] |
| if reached == "" { |
| + p := &homeSimReq{id: id, what: what, name: name, status: status, allowed: map[string]bool{}} |
| + if published { |
| + p.allowed[want] = true |
| + } |
| + s.pending = append(s.pending, p) |
| s.stats.refused++ |
| if published { |
| s.stats.refusedPublished++ |
| @@ -248,6 +315,7 @@ func (s *homeSim) publish(name, key string) { |
| if was, ok := s.pub[name]; ok && was != key { |
| s.revoke(name, "retargeted "+was+" -> "+key) |
| } |
| + s.widen(name, key) |
| tg := s.target(key) |
| a := tg.app |
| a.Name = name |
| @@ -257,6 +325,16 @@ func (s *homeSim) publish(name, key string) { |
| s.pub[name] = key |
| } |
| +// widen records that name is published to key from now on, for the |
| +// pending requests for name: a late arrival there is within its window. |
| +func (s *homeSim) widen(name, key string) { |
| + for _, p := range s.pending { |
| + if p.name == name { |
| + p.allowed[key] = true |
| + } |
| + } |
| +} |
| + |
| func (s *homeSim) unpublish(name string) { |
| if was, ok := s.pub[name]; ok { |
| s.revoke(name, "unpublished from "+was) |
| @@ -269,12 +347,13 @@ func (s *homeSim) unpublish(name string) { |
| // request sends one plain visitor request through the hub. |
| func (s *homeSim) request(name string) { |
| - before := s.counts() |
| + id := s.tag() |
| req, err := http.NewRequest("GET", s.w.hubURL+"/hello", nil) |
| if err != nil { |
| s.t.Fatal(err) |
| } |
| req.Host = linkPublicHost(name) |
| + req.Header.Set(linkSimReqHeader, id) |
| resp, err := linkNoRedirect.Do(req) |
| status := 0 |
| if err == nil { |
| @@ -282,19 +361,20 @@ func (s *homeSim) request(name string) { |
| resp.Body.Close() |
| status = resp.StatusCode |
| } |
| - got := s.reached(before, "request") |
| - s.logf("request %s -> %d %v reached %q (published %q)", name, status, err, got, s.pub[name]) |
| - s.admitted(name, got, "a request", status) |
| + got := s.reached(id, "request") |
| + s.logf("request %s %s -> %d %v reached %q (published %q)", name, id, status, err, got, s.pub[name]) |
| + s.admitted(id, name, got, "a request", status) |
| } |
| // openSSE opens /sse for name through the hub. A refusal opens nothing. |
| func (s *homeSim) openSSE(name string) { |
| - before := s.counts() |
| + id := s.tag() |
| req, err := http.NewRequest("GET", s.w.hubURL+"/sse", nil) |
| if err != nil { |
| s.t.Fatal(err) |
| } |
| req.Host = linkPublicHost(name) |
| + req.Header.Set(linkSimReqHeader, id) |
| // The headers and the first event must come within homeSimOpenBound; |
| // past it the request is cancelled and the seed fails, rather than |
| // hang to the package timeout. Once open, cancel is the stream's close. |
| @@ -304,11 +384,11 @@ func (s *homeSim) openSSE(name string) { |
| if err != nil { |
| stopped := timer.Stop() |
| cancel() |
| - s.logf("sse %s -> %v", name, err) |
| + s.logf("sse %s %s -> %v", name, id, err) |
| if !stopped { |
| s.failf("an SSE open for %s got no answer within %s", name, homeSimOpenBound) |
| } |
| - s.admitted(name, s.reached(before, "an SSE open"), "an SSE open", 0) |
| + s.admitted(id, name, s.reached(id, "an SSE open"), "an SSE open", 0) |
| return |
| } |
| if resp.StatusCode != http.StatusOK { |
| @@ -316,9 +396,9 @@ func (s *homeSim) openSSE(name string) { |
| resp.Body.Close() |
| timer.Stop() |
| cancel() |
| - got := s.reached(before, "an SSE open") |
| - s.logf("sse %s -> %d reached %q (published %q)", name, resp.StatusCode, got, s.pub[name]) |
| - s.admitted(name, got, "an SSE open", resp.StatusCode) |
| + got := s.reached(id, "an SSE open") |
| + s.logf("sse %s %s -> %d reached %q (published %q)", name, id, resp.StatusCode, got, s.pub[name]) |
| + s.admitted(id, name, got, "an SSE open", resp.StatusCode) |
| return |
| } |
| br := bufio.NewReader(resp.Body) |
| @@ -329,12 +409,12 @@ func (s *homeSim) openSSE(name string) { |
| if err != nil || line != "data: hello\n" { |
| resp.Body.Close() |
| cancel() |
| - got := s.reached(before, "an SSE open") |
| - s.logf("sse %s -> 200, first line %q %v, reached %q", name, line, err, got) |
| - s.admitted(name, got, "an SSE open", 0) |
| + got := s.reached(id, "an SSE open") |
| + s.logf("sse %s %s -> 200, first line %q %v, reached %q", name, id, line, err, got) |
| + s.admitted(id, name, got, "an SSE open", 0) |
| return |
| } |
| - got := s.reached(before, "an SSE open") |
| + got := s.reached(id, "an SSE open") |
| st := &homeSimStream{n: len(s.streams), kind: "sse", name: name, target: got, ended: make(chan struct{}), close: func() { cancel(); resp.Body.Close() }} |
| go func() { |
| io.Copy(io.Discard, br) |
| @@ -343,21 +423,21 @@ func (s *homeSim) openSSE(name string) { |
| }() |
| s.streams = append(s.streams, st) |
| s.stats.streams++ |
| - s.logf("sse %s -> open stream %d served by %q (published %q)", name, st.n, got, s.pub[name]) |
| - s.admitted(name, got, "an SSE open", http.StatusOK) |
| + s.logf("sse %s %s -> open stream %d served by %q (published %q)", name, id, st.n, got, s.pub[name]) |
| + s.admitted(id, name, got, "an SSE open", http.StatusOK) |
| } |
| // openWS opens a raw WebSocket upgrade for name through the hub and checks |
| // one echo. A refusal opens nothing. |
| func (s *homeSim) openWS(name string) { |
| - before := s.counts() |
| + id := s.tag() |
| u, _ := url.Parse(s.w.hubURL) |
| conn, err := net.DialTimeout("tcp", u.Host, homeSimOpenBound) |
| if err != nil { |
| s.t.Fatal(err) |
| } |
| host := linkPublicHost(name) |
| - fmt.Fprintf(conn, "GET /ws HTTP/1.1\r\nHost: %s\r\nConnection: Upgrade\r\nUpgrade: websocket\r\nOrigin: https://%s\r\n\r\n", host, host) |
| + fmt.Fprintf(conn, "GET /ws HTTP/1.1\r\nHost: %s\r\nConnection: Upgrade\r\nUpgrade: websocket\r\nOrigin: https://%s\r\n%s: %s\r\n\r\n", host, host, linkSimReqHeader, id) |
| br := bufio.NewReader(conn) |
| conn.SetDeadline(time.Now().Add(homeSimOpenBound)) |
| resp, err := http.ReadResponse(br, nil) |
| @@ -367,9 +447,9 @@ func (s *homeSim) openWS(name string) { |
| status = resp.StatusCode |
| } |
| conn.Close() |
| - got := s.reached(before, "a WebSocket open") |
| - s.logf("ws %s -> %d %v reached %q (published %q)", name, status, err, got, s.pub[name]) |
| - s.admitted(name, got, "a WebSocket open", status) |
| + got := s.reached(id, "a WebSocket open") |
| + s.logf("ws %s %s -> %d %v reached %q (published %q)", name, id, status, err, got, s.pub[name]) |
| + s.admitted(id, name, got, "a WebSocket open", status) |
| return |
| } |
| buf := make([]byte, 4) |
| @@ -377,11 +457,11 @@ func (s *homeSim) openWS(name string) { |
| _, err = io.ReadFull(br, buf) |
| } |
| conn.SetDeadline(time.Time{}) |
| - got := s.reached(before, "a WebSocket open") |
| + got := s.reached(id, "a WebSocket open") |
| if string(buf) != "ping" { |
| conn.Close() |
| - s.logf("ws %s -> 101, no echo, reached %q", name, got) |
| - s.admitted(name, got, "a WebSocket open", 0) |
| + s.logf("ws %s %s -> 101, no echo, reached %q", name, id, got) |
| + s.admitted(id, name, got, "a WebSocket open", 0) |
| return |
| } |
| st := &homeSimStream{n: len(s.streams), kind: "ws", name: name, target: got, ended: make(chan struct{}), close: func() { conn.Close() }} |
| @@ -392,8 +472,8 @@ func (s *homeSim) openWS(name string) { |
| }() |
| s.streams = append(s.streams, st) |
| s.stats.streams++ |
| - s.logf("ws %s -> open stream %d served by %q (published %q)", name, st.n, got, s.pub[name]) |
| - s.admitted(name, got, "a WebSocket open", http.StatusSwitchingProtocols) |
| + s.logf("ws %s %s -> open stream %d served by %q (published %q)", name, id, st.n, got, s.pub[name]) |
| + s.admitted(id, name, got, "a WebSocket open", http.StatusSwitchingProtocols) |
| } |
| // tick checks the revocation bound. With reload, the home edge reloads |
| @@ -403,6 +483,7 @@ func (s *homeSim) openWS(name string) { |
| // longer published must end within homeSimBound of the change that took |
| // it away. |
| func (s *homeSim) tick(reload bool) { |
| + s.late() |
| passes := s.w.passes.Load() |
| at := time.Now() |
| if reload { |
| @@ -467,6 +548,7 @@ func (s *homeSim) settled(passes int64) { |
| // step runs one random step. |
| func (s *homeSim) step(rng *rand.Rand) { |
| + s.late() |
| name := homeSimNames[rng.Intn(len(homeSimNames))] |
| key := s.targets[rng.Intn(len(s.targets))].key |
| switch r := rng.Intn(100); { |
| @@ -585,7 +667,7 @@ func TestLinkSimHomeSide(t *testing.T) { |
| w, targets = newHomeSimWorld(t) |
| } |
| rng := rand.New(rand.NewSource(seed)) |
| - s := &homeSim{t: t, stats: &stats, w: w, targets: targets, pub: map[string]string{}} |
| + s := &homeSim{t: t, stats: &stats, w: w, targets: targets, pub: map[string]string{}, seed: seed} |
| s.reset() |
| s.logf("seed %d", seed) |
| n := 1 + rng.Intn(maxSteps) |
| @@ -597,18 +679,21 @@ func TestLinkSimHomeSide(t *testing.T) { |
| } |
| if len(s.fails) != 0 { |
| failed++ |
| - t.Errorf("seed %d failed. Reproduce with LINKSIM_SEED=%d (alone, fresh world); if that passes, the failure "+ |
| - "depends on the seeds before it on the shared world: LINKSIM_SEEDS=%d.\n%s\n\ntrace:\n %s", |
| - seed, seed, seed, strings.Join(s.fails, "\n"), strings.Join(s.trace, "\n ")) |
| + // The violated check goes on the message's first line, which is |
| + // all the CI gate's failure summary keeps (.amadan/test-gate.sh); |
| + // the trace follows in the full log. |
| + t.Errorf("seed %d failed: %s. Reproduce with LINKSIM_SEED=%d (alone, fresh world); if that passes, the failure "+ |
| + "depends on the seeds before it on the shared world: LINKSIM_SEEDS=%d.\nall failed checks:\n %s\n\ntrace:\n %s", |
| + seed, s.fails[0], seed, seed, strings.Join(s.fails, "\n "), strings.Join(s.trace, "\n ")) |
| if failed == linkSimMaxFailedSeeds { |
| t.FailNow() |
| } |
| } |
| s.cleanup() |
| } |
| - t.Logf("%d seeds, up to %d steps each, in %s: %d requests and opens served, %d refused (%d of them published), %d streams opened, %d revoked streams ended at %d ticks (%d transient; %d at %d ticks with no reload), %d retargets", |
| + t.Logf("%d seeds, up to %d steps each, in %s: %d requests and opens served, %d refused (%d of them published; %d reached an app after their answer), %d streams opened, %d revoked streams ended at %d ticks (%d transient; %d at %d ticks with no reload), %d retargets", |
| len(seeds), maxSteps, time.Since(start).Round(time.Millisecond), |
| - stats.served, stats.refused, stats.refusedPublished, stats.streams, stats.revokedEnded, stats.ticks, stats.transient, |
| + stats.served, stats.refused, stats.refusedPublished, stats.late, stats.streams, stats.revokedEnded, stats.ticks, stats.transient, |
| stats.revokedUnreloaded, stats.unreloaded, stats.retargets) |
| if !one && len(seeds) >= linkSimDefaultSeeds { |
| // A full run that reached none of these proves nothing. |
| @@ -622,6 +707,64 @@ func TestLinkSimHomeSide(t *testing.T) { |
| } |
| } |
| +// TestLinkSimHomeLateArrivals holds the late-arrival oracle to what it allows: |
| +// a request the hub gave up on (502, 504 or no answer) may reach an app |
| +// after its answer, but only one its name was published to at some moment |
| +// since it was sent; after any other answer, or at any other app, the seed |
| +// fails. Before the tags, seeds 233, 376 and 489 failed under four-core |
| +// contention locally (CI's 160 and 246 at 32d071c0 are the likely same |
| +// case; the gate summary kept no trace): an SSE open answered 502, when an |
| +// unpublish replaced the connection under it, reached its app after the |
| +// step had counted, and the next step's count took it for its own. |
| +func TestLinkSimHomeLateArrivals(t *testing.T) { |
| + shop, blog := &linkTestApp{name: "shop"}, &linkTestApp{name: "blog"} |
| + arrive := func(a *linkTestApp, id string) { |
| + a.mu.Lock() |
| + a.seen = append(a.seen, linkSeen{SimReq: id}) |
| + a.mu.Unlock() |
| + } |
| + for _, tc := range []struct { |
| + name string |
| + pub string // what "one" is published to when the request is sent, "" for nothing |
| + status int |
| + widen string // a target "one" is published to after the answer, "" for none |
| + at *linkTestApp |
| + wantFails bool |
| + }{ |
| + {"502 then its own target", "shop", http.StatusBadGateway, "", shop, false}, |
| + {"no answer then its own target", "shop", 0, "", shop, false}, |
| + {"502 then a target published since", "shop", http.StatusBadGateway, "blog", blog, false}, |
| + {"502 then a target never published", "shop", http.StatusBadGateway, "", blog, true}, |
| + {"unpublished at send, then an app", "", 0, "", shop, true}, |
| + {"404 then its own target", "shop", http.StatusNotFound, "", shop, true}, |
| + {"503 then its own target", "shop", http.StatusServiceUnavailable, "", shop, true}, |
| + } { |
| + t.Run(tc.name, func(t *testing.T) { |
| + s := &homeSim{t: t, stats: &homeSimStats{}, pub: map[string]string{}, |
| + targets: []homeSimTarget{{key: "shop", test: shop}, {key: "blog", test: blog}}, seed: time.Now().UnixNano()} |
| + if tc.pub != "" { |
| + s.pub["one"] = tc.pub |
| + } |
| + id := s.tag() |
| + s.admitted(id, "one", s.reached(id, "an SSE open"), "an SSE open", tc.status) |
| + if len(s.fails) != 0 || len(s.pending) != 1 { |
| + t.Fatalf("before the arrival: fails %q, %d pending", s.fails, len(s.pending)) |
| + } |
| + if tc.widen != "" { |
| + s.widen("one", tc.widen) |
| + } |
| + arrive(tc.at, id) |
| + s.late() |
| + if got := len(s.fails) != 0; got != tc.wantFails { |
| + t.Fatalf("fails = %q, want failing %v", s.fails, tc.wantFails) |
| + } |
| + if len(s.pending) != 0 || s.stats.late != 1 { |
| + t.Fatalf("after the arrival: %d pending, %d late", len(s.pending), s.stats.late) |
| + } |
| + }) |
| + } |
| +} |
| + |
| // TestLinkRepublishSameTargetBetweenTicks is the transient revocation the |
| // simulation's oracle records: a stream open on shop under demo, demo |
| // unpublished and published to shop again before the tick. The same |