Skip to content

Commit 96f2dc5

Browse files
committed
Revert "fix up cherry-pick to pass tests"
This reverts commit e7c80e8.
1 parent b992455 commit 96f2dc5

File tree

1 file changed

+1
-42
lines changed

1 file changed

+1
-42
lines changed

check_test.go

Lines changed: 1 addition & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,6 @@ 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),
8076
resource.NewVersion(testPullRequests[8], testPullRequests[8].Tip.CommittedDate.Time),
8177
resource.NewVersion(testPullRequests[7], testPullRequests[7].Tip.CommittedDate.Time),
8278
resource.NewVersion(testPullRequests[6], testPullRequests[6].Tip.CommittedDate.Time),
@@ -85,6 +81,7 @@ func TestCheck(t *testing.T) {
8581
resource.NewVersion(testPullRequests[3], testPullRequests[3].Tip.CommittedDate.Time),
8682
resource.NewVersion(testPullRequests[2], testPullRequests[2].Tip.CommittedDate.Time),
8783
resource.NewVersion(testPullRequests[1], testPullRequests[1].Tip.CommittedDate.Time),
84+
8885
},
8986
},
9087

@@ -98,16 +95,6 @@ func TestCheck(t *testing.T) {
9895
pullRequests: testPullRequests,
9996
files: [][]string{},
10097
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),
11198
resource.NewVersion(testPullRequests[2], testPullRequests[2].Tip.CommittedDate.Time),
11299
resource.NewVersion(testPullRequests[1], testPullRequests[1].Tip.CommittedDate.Time),
113100
},
@@ -163,10 +150,6 @@ func TestCheck(t *testing.T) {
163150
version: resource.NewVersion(testPullRequests[1], testPullRequests[1].Tip.CommittedDate.Time),
164151
pullRequests: testPullRequests,
165152
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),
170153
resource.NewVersion(testPullRequests[8], testPullRequests[8].Tip.CommittedDate.Time),
171154
resource.NewVersion(testPullRequests[7], testPullRequests[7].Tip.CommittedDate.Time),
172155
resource.NewVersion(testPullRequests[6], testPullRequests[6].Tip.CommittedDate.Time),
@@ -189,16 +172,6 @@ func TestCheck(t *testing.T) {
189172
version: resource.NewVersion(testPullRequests[3], testPullRequests[3].Tip.CommittedDate.Time),
190173
pullRequests: testPullRequests,
191174
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),
202175
resource.NewVersion(testPullRequests[1], testPullRequests[1].Tip.CommittedDate.Time),
203176
},
204177
},
@@ -213,16 +186,6 @@ func TestCheck(t *testing.T) {
213186
version: resource.NewVersion(testPullRequests[3], testPullRequests[3].Tip.CommittedDate.Time),
214187
pullRequests: testPullRequests,
215188
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),
226189
resource.NewVersion(testPullRequests[2], testPullRequests[2].Tip.CommittedDate.Time),
227190
resource.NewVersion(testPullRequests[1], testPullRequests[1].Tip.CommittedDate.Time),
228191
},
@@ -238,10 +201,6 @@ func TestCheck(t *testing.T) {
238201
version: resource.NewVersion(testPullRequests[5], testPullRequests[5].Tip.CommittedDate.Time),
239202
pullRequests: testPullRequests,
240203
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),
245204
resource.NewVersion(testPullRequests[8], testPullRequests[8].Tip.CommittedDate.Time),
246205
resource.NewVersion(testPullRequests[7], testPullRequests[7].Tip.CommittedDate.Time),
247206
resource.NewVersion(testPullRequests[6], testPullRequests[6].Tip.CommittedDate.Time),

0 commit comments

Comments
 (0)