23 lines
674 B
Go
23 lines
674 B
Go
package main
|
|
|
|
import (
|
|
"os"
|
|
"strings"
|
|
"testing"
|
|
)
|
|
|
|
// 1912: with checks as asks on the build seats' streams, the stream redelivers a lost node's ask (ADR 0525 §6), so the
|
|
// checker program watches no node-engine have to start again a check that failed for want of a node. It reads the have's
|
|
// keys only for the nodes' names at each ask (judge.go, novox/hq ADR 0567 §12).
|
|
func TestTheCheckerWatchesNoHave(t *testing.T) {
|
|
raw, err := os.ReadFile("main.go")
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
for _, s := range []string{"delivery.HaveBucket", "buildrun.HaveSet"} {
|
|
if strings.Contains(string(raw), s) {
|
|
t.Errorf("the checker program still reads %s", s)
|
|
}
|
|
}
|
|
}
|