takein: the test's pending revision names a lost merge (TestTakeInEvents fails on main since A-476 b) #253
@@ -16,7 +16,7 @@ import (
|
||||
func sampleTakeIns(since time.Time) []TakeIn {
|
||||
m := []Merge{{Repository: "novox/mesh-delivery", Number: 9, Merge: "eeee"}}
|
||||
return []TakeIn{
|
||||
{Kind: TakeInPending, Key: PendingKey(12), What: TakeInRevision, Merges: m, WaitsFor: "src2:abc", Since: since},
|
||||
{Kind: TakeInPending, Key: PendingKey(12), What: TakeInRevision, Merges: m, Lost: []string{"m.00000000000000000011"}, Since: since},
|
||||
{Kind: TakeInPending, Key: GroupTakeInKey("feat/take-in"), What: TakeInGroup, Merges: m, Group: "feat/take-in",
|
||||
Members: []meshdeliveryclient.Head{{Repository: "novox/mesh-delivery", Number: 9, Head: "ffff"}, {Repository: "novox/mesh-sdk", Number: 37, Head: "dddd"}}, Since: since},
|
||||
{Kind: TakeInTaken, Key: PendingKey(12), What: TakeInRevision, Merges: m, WaitsFor: "src2:abc", Since: since,
|
||||
@@ -70,7 +70,7 @@ func TestTakeInEvents(t *testing.T) {
|
||||
}{
|
||||
{"group take-in without its group", "names its group", 1, func(t *TakeIn) { t.Group = "" }},
|
||||
{"group take-in under another group's key", "g.other", 1, func(t *TakeIn) { t.Key = GroupTakeInKey("other") }},
|
||||
{"pending revision waiting for no build", "lost", 0, func(t *TakeIn) { t.WaitsFor = "" }},
|
||||
{"pending revision naming neither a lost merge nor a refusal", "lost", 0, func(t *TakeIn) { t.Lost = nil }},
|
||||
{"pending with a hand act", "only a taken event", 0, func(t *TakeIn) { t.By = "someone@node" }},
|
||||
{"hand act without its by", "by", 2, func(t *TakeIn) { t.By = "" }},
|
||||
{"take-in without merges", "no merge", 0, func(t *TakeIn) { t.Merges = nil }},
|
||||
|
||||
Reference in New Issue
Block a user