mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-11-05 04:38:16 +00:00
Fix submit queue when there are multiple LGTMs
This commit is contained in:
@@ -424,6 +424,60 @@ func TestValidateLGTMAfterPush(t *testing.T) {
|
||||
lastModified: time.Unix(11, 0),
|
||||
shouldPass: false,
|
||||
},
|
||||
{
|
||||
issueEvents: []github.IssueEvent{
|
||||
{
|
||||
Event: stringPtr("labeled"),
|
||||
Label: &github.Label{
|
||||
Name: stringPtr("lgtm"),
|
||||
},
|
||||
CreatedAt: timePtr(time.Unix(12, 0)),
|
||||
},
|
||||
{
|
||||
Event: stringPtr("labeled"),
|
||||
Label: &github.Label{
|
||||
Name: stringPtr("lgtm"),
|
||||
},
|
||||
CreatedAt: timePtr(time.Unix(11, 0)),
|
||||
},
|
||||
{
|
||||
Event: stringPtr("labeled"),
|
||||
Label: &github.Label{
|
||||
Name: stringPtr("lgtm"),
|
||||
},
|
||||
CreatedAt: timePtr(time.Unix(10, 0)),
|
||||
},
|
||||
},
|
||||
lastModified: time.Unix(11, 0),
|
||||
shouldPass: true,
|
||||
},
|
||||
{
|
||||
issueEvents: []github.IssueEvent{
|
||||
{
|
||||
Event: stringPtr("labeled"),
|
||||
Label: &github.Label{
|
||||
Name: stringPtr("lgtm"),
|
||||
},
|
||||
CreatedAt: timePtr(time.Unix(10, 0)),
|
||||
},
|
||||
{
|
||||
Event: stringPtr("labeled"),
|
||||
Label: &github.Label{
|
||||
Name: stringPtr("lgtm"),
|
||||
},
|
||||
CreatedAt: timePtr(time.Unix(11, 0)),
|
||||
},
|
||||
{
|
||||
Event: stringPtr("labeled"),
|
||||
Label: &github.Label{
|
||||
Name: stringPtr("lgtm"),
|
||||
},
|
||||
CreatedAt: timePtr(time.Unix(12, 0)),
|
||||
},
|
||||
},
|
||||
lastModified: time.Unix(11, 0),
|
||||
shouldPass: true,
|
||||
},
|
||||
}
|
||||
for _, test := range tests {
|
||||
client, server, mux := initTest()
|
||||
|
||||
Reference in New Issue
Block a user