Keep two values of each issue in the tracker's bucket, since the log holds them all (issue 1221) #370

Merged
mesh-tools merged 1 commits from fix/1221-tracker-keeps-two-copies into main 2026-10-19 11:08:47 +00:00
2 changed files with 4 additions and 3 deletions
@@ -587,7 +587,8 @@ func TestFortyReservationsAtOnceFromTwoInstancesGetFortyDistinctConsecutiveNumbe
}
// The carry over the bus (novox/hq ADR 0300 §6, ADR 0307): values the bucket kept before the switch are read
// through the runtime's history, oldest first, and carried before the write that touches the issue.
// through the runtime's history, oldest first, and carried before the write that touches the issue. The bucket
// keeps the two values the manifest declares (novox/hq issue 1221), so of three written the last two are carried.
func TestAWriteOverTheBusCarriesEveryValueTheBucketKeptFirst(t *testing.T) {
b := newBus(t)
var events []event
@@ -617,7 +618,7 @@ func TestAWriteOverTheBusCarriesEveryValueTheBucketKeptFirst(t *testing.T) {
titles = append(titles, op.Issue.Title)
}
}
if fmt.Sprint(ops) != "[carried carried carried noted]" || fmt.Sprint(titles) != "[first second third]" {
if fmt.Sprint(ops) != "[carried carried noted]" || fmt.Sprint(titles) != "[second third]" {
t.Fatalf("the log holds %v of %v", ops, titles)
}
}
+1 -1
View File
@@ -75,7 +75,7 @@
"state": [
{
"name": "issues",
"history": 8
"history": 2
},
"counters",
"grooming",