Skip to content

Commit e7c80e8

Browse files
committed
fix up cherry-pick to pass tests
1 parent fd89b79 commit e7c80e8

File tree

1 file changed

+42
-1
lines changed

1 file changed

+42
-1
lines changed

check_test.go

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,10 @@ func TestCheck(t *testing.T) {
7373
pullRequests: testPullRequests,
7474
files: [][]string{},
7575
expected: resource.CheckResponse{
76+
resource.NewVersion(testPullRequests[14], testPullRequests[14].Tip.CommittedDate.Time),
77+
resource.NewVersion(testPullRequests[13], testPullRequests[13].Tip.CommittedDate.Time),
78+
resource.NewVersion(testPullRequests[12], testPullRequests[12].Tip.CommittedDate.Time),
79+
resource.NewVersion(testPullRequests[11], testPullRequests[11].Tip.CommittedDate.Time),
7680
resource.NewVersion(testPullRequests[8], testPullRequests[8].Tip.CommittedDate.Time),
7781
resource.NewVersion(testPullRequests[7], testPullRequests[7].Tip.CommittedDate.Time),
7882
resource.NewVersion(testPullRequests[6], testPullRequests[6].Tip.CommittedDate.Time),
@@ -81,7 +85,6 @@ func TestCheck(t *testing.T) {
8185
resource.NewVersion(testPullRequests[3], testPullRequests[3].Tip.CommittedDate.Time),
8286
resource.NewVersion(testPullRequests[2], testPullRequests[2].Tip.CommittedDate.Time),
8387
resource.NewVersion(testPullRequests[1], testPullRequests[1].Tip.CommittedDate.Time),
84-
8588
},
8689
},
8790

@@ -95,6 +98,16 @@ func TestCheck(t *testing.T) {
9598
pullRequests: testPullRequests,
9699
files: [][]string{},
97100
expected: resource.CheckResponse{
101+
resource.NewVersion(testPullRequests[14], testPullRequests[14].Tip.CommittedDate.Time),
102+
resource.NewVersion(testPullRequests[13], testPullRequests[13].Tip.CommittedDate.Time),
103+
resource.NewVersion(testPullRequests[12], testPullRequests[12].Tip.CommittedDate.Time),
104+
resource.NewVersion(testPullRequests[11], testPullRequests[11].Tip.CommittedDate.Time),
105+
resource.NewVersion(testPullRequests[8], testPullRequests[8].Tip.CommittedDate.Time),
106+
resource.NewVersion(testPullRequests[7], testPullRequests[7].Tip.CommittedDate.Time),
107+
resource.NewVersion(testPullRequests[6], testPullRequests[6].Tip.CommittedDate.Time),
108+
resource.NewVersion(testPullRequests[5], testPullRequests[5].Tip.CommittedDate.Time),
109+
resource.NewVersion(testPullRequests[4], testPullRequests[4].Tip.CommittedDate.Time),
110+
resource.NewVersion(testPullRequests[3], testPullRequests[3].Tip.CommittedDate.Time),
98111
resource.NewVersion(testPullRequests[2], testPullRequests[2].Tip.CommittedDate.Time),
99112
resource.NewVersion(testPullRequests[1], testPullRequests[1].Tip.CommittedDate.Time),
100113
},
@@ -150,6 +163,10 @@ func TestCheck(t *testing.T) {
150163
version: resource.NewVersion(testPullRequests[1], testPullRequests[1].Tip.CommittedDate.Time),
151164
pullRequests: testPullRequests,
152165
expected: resource.CheckResponse{
166+
resource.NewVersion(testPullRequests[14], testPullRequests[14].Tip.CommittedDate.Time),
167+
resource.NewVersion(testPullRequests[13], testPullRequests[13].Tip.CommittedDate.Time),
168+
resource.NewVersion(testPullRequests[12], testPullRequests[12].Tip.CommittedDate.Time),
169+
resource.NewVersion(testPullRequests[11], testPullRequests[11].Tip.CommittedDate.Time),
153170
resource.NewVersion(testPullRequests[8], testPullRequests[8].Tip.CommittedDate.Time),
154171
resource.NewVersion(testPullRequests[7], testPullRequests[7].Tip.CommittedDate.Time),
155172
resource.NewVersion(testPullRequests[6], testPullRequests[6].Tip.CommittedDate.Time),
@@ -172,6 +189,16 @@ func TestCheck(t *testing.T) {
172189
version: resource.NewVersion(testPullRequests[3], testPullRequests[3].Tip.CommittedDate.Time),
173190
pullRequests: testPullRequests,
174191
expected: resource.CheckResponse{
192+
resource.NewVersion(testPullRequests[14], testPullRequests[14].Tip.CommittedDate.Time),
193+
resource.NewVersion(testPullRequests[13], testPullRequests[13].Tip.CommittedDate.Time),
194+
resource.NewVersion(testPullRequests[12], testPullRequests[12].Tip.CommittedDate.Time),
195+
resource.NewVersion(testPullRequests[11], testPullRequests[11].Tip.CommittedDate.Time),
196+
resource.NewVersion(testPullRequests[8], testPullRequests[8].Tip.CommittedDate.Time),
197+
resource.NewVersion(testPullRequests[7], testPullRequests[7].Tip.CommittedDate.Time),
198+
resource.NewVersion(testPullRequests[6], testPullRequests[6].Tip.CommittedDate.Time),
199+
resource.NewVersion(testPullRequests[5], testPullRequests[5].Tip.CommittedDate.Time),
200+
resource.NewVersion(testPullRequests[4], testPullRequests[4].Tip.CommittedDate.Time),
201+
resource.NewVersion(testPullRequests[3], testPullRequests[3].Tip.CommittedDate.Time),
175202
resource.NewVersion(testPullRequests[1], testPullRequests[1].Tip.CommittedDate.Time),
176203
},
177204
},
@@ -186,6 +213,16 @@ func TestCheck(t *testing.T) {
186213
version: resource.NewVersion(testPullRequests[3], testPullRequests[3].Tip.CommittedDate.Time),
187214
pullRequests: testPullRequests,
188215
expected: resource.CheckResponse{
216+
resource.NewVersion(testPullRequests[14], testPullRequests[14].Tip.CommittedDate.Time),
217+
resource.NewVersion(testPullRequests[13], testPullRequests[13].Tip.CommittedDate.Time),
218+
resource.NewVersion(testPullRequests[12], testPullRequests[12].Tip.CommittedDate.Time),
219+
resource.NewVersion(testPullRequests[11], testPullRequests[11].Tip.CommittedDate.Time),
220+
resource.NewVersion(testPullRequests[8], testPullRequests[8].Tip.CommittedDate.Time),
221+
resource.NewVersion(testPullRequests[7], testPullRequests[7].Tip.CommittedDate.Time),
222+
resource.NewVersion(testPullRequests[6], testPullRequests[6].Tip.CommittedDate.Time),
223+
resource.NewVersion(testPullRequests[5], testPullRequests[5].Tip.CommittedDate.Time),
224+
resource.NewVersion(testPullRequests[4], testPullRequests[4].Tip.CommittedDate.Time),
225+
resource.NewVersion(testPullRequests[3], testPullRequests[3].Tip.CommittedDate.Time),
189226
resource.NewVersion(testPullRequests[2], testPullRequests[2].Tip.CommittedDate.Time),
190227
resource.NewVersion(testPullRequests[1], testPullRequests[1].Tip.CommittedDate.Time),
191228
},
@@ -201,6 +238,10 @@ func TestCheck(t *testing.T) {
201238
version: resource.NewVersion(testPullRequests[5], testPullRequests[5].Tip.CommittedDate.Time),
202239
pullRequests: testPullRequests,
203240
expected: resource.CheckResponse{
241+
resource.NewVersion(testPullRequests[14], testPullRequests[14].Tip.CommittedDate.Time),
242+
resource.NewVersion(testPullRequests[13], testPullRequests[13].Tip.CommittedDate.Time),
243+
resource.NewVersion(testPullRequests[12], testPullRequests[12].Tip.CommittedDate.Time),
244+
resource.NewVersion(testPullRequests[11], testPullRequests[11].Tip.CommittedDate.Time),
204245
resource.NewVersion(testPullRequests[8], testPullRequests[8].Tip.CommittedDate.Time),
205246
resource.NewVersion(testPullRequests[7], testPullRequests[7].Tip.CommittedDate.Time),
206247
resource.NewVersion(testPullRequests[6], testPullRequests[6].Tip.CommittedDate.Time),

0 commit comments

Comments
 (0)