38 lines
899 B
Go
38 lines
899 B
Go
//go:build integration
|
|
|
|
package main
|
|
|
|
import (
|
|
"testing"
|
|
"time"
|
|
)
|
|
|
|
func TestEveryMoveAMergeAndTheCutMakeOfAPlanIsSaid(t *testing.T) {
|
|
open := windowed(t)
|
|
everyHeadWaits(t)
|
|
asksWithPaths(t)
|
|
heard := sayingEverySave(t)
|
|
hear(t, open, catalogueMerge("553b7191claude", "app", t0), t0.Add(time.Second))
|
|
if _, bs := walks(t, open); len(bs) != 1 {
|
|
t.Fatalf("%d batch(es) opened", len(bs))
|
|
}
|
|
heard.noUnsaid(t, open)
|
|
cutAt(t, open, t0.Add(91*time.Second))
|
|
if ws, bs := walks(t, open); len(ws) != 1 || len(bs) != 0 {
|
|
t.Fatalf("%d walk(s), %d batch(es) after the cut", len(ws), len(bs))
|
|
}
|
|
heard.noUnsaid(t, open)
|
|
counted := 0
|
|
for _, r := range heard.revs {
|
|
counted += len(r)
|
|
}
|
|
cutAt(t, open, t0.Add(92*time.Second))
|
|
again := 0
|
|
for _, r := range heard.revs {
|
|
again += len(r)
|
|
}
|
|
if again != counted {
|
|
t.Errorf("a look that changed nothing said %d more move(s)", again-counted)
|
|
}
|
|
}
|