Register a new module from the builder's first done key and ask no first build; its condition reads the key and names a manifest word this controller does not read (issue 1851, A5a, A5b)
This commit is contained in:
@@ -124,6 +124,11 @@ func TestTheControllerReadsTheBuildersKeysAndTheIndexersValues(t *testing.T) {
|
||||
if _, err := r.ModuleAt(ctx, "x", "9999999999"); !errors.Is(err, ErrNoValue) {
|
||||
t.Fatalf("a commit the indexer never wrote: %v", err)
|
||||
}
|
||||
put(t, modules, "broken", []byte("{not json"))
|
||||
all, unread, err := r.Modules(ctx)
|
||||
if err != nil || len(all) != 1 || all["x"].Commit != "3333333333" || unread["broken"] == nil {
|
||||
t.Fatalf("every module's value now: %+v %v %v", all, unread, err)
|
||||
}
|
||||
}
|
||||
|
||||
// The controller's account reaches the builder's and the indexer's buckets: it is granted the JetStream API whole.
|
||||
|
||||
Reference in New Issue
Block a user