Skip to content

Commit a5d87a3

Browse files
committed
revert unnecessary change
1 parent 3ad1064 commit a5d87a3

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

tests/integration/repofiles_change_test.go

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -273,14 +273,7 @@ func TestChangeRepoFilesForCreate(t *testing.T) {
273273
expectedFileResponse := getExpectedFileResponseForRepofilesCreate(commitID, lastCommit)
274274
assert.NotNil(t, expectedFileResponse)
275275
if expectedFileResponse != nil {
276-
assert.EqualValues(t, expectedFileResponse.Content.Name, filesResponse.Files[0].Name)
277-
assert.EqualValues(t, expectedFileResponse.Content.Path, filesResponse.Files[0].Path)
278-
assert.EqualValues(t, expectedFileResponse.Content.SHA, filesResponse.Files[0].SHA)
279-
assert.EqualValues(t, expectedFileResponse.Content.LastCommitSHA, filesResponse.Files[0].LastCommitSHA)
280-
assert.EqualValues(t, expectedFileResponse.Content.LastCommitWhen, filesResponse.Files[0].LastCommitWhen)
281-
assert.EqualValues(t, expectedFileResponse.Content.Type, filesResponse.Files[0].Type)
282-
assert.EqualValues(t, expectedFileResponse.Content.Size, filesResponse.Files[0].Size)
283-
276+
assert.EqualValues(t, expectedFileResponse.Content, filesResponse.Files[0])
284277
assert.EqualValues(t, expectedFileResponse.Commit.SHA, filesResponse.Commit.SHA)
285278
assert.EqualValues(t, expectedFileResponse.Commit.HTMLURL, filesResponse.Commit.HTMLURL)
286279
assert.EqualValues(t, expectedFileResponse.Commit.Author.Email, filesResponse.Commit.Author.Email)

0 commit comments

Comments
 (0)