mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-30 18:36:14 -06:00
more test fixing, ensure the edit.status_id field is actually set 🤦
This commit is contained in:
parent
9a01b647da
commit
6b4f12283f
2 changed files with 5 additions and 4 deletions
|
|
@ -937,6 +937,7 @@ func (d *Dereferencer) updateStatus(
|
|||
edit.Sensitive = existing.Sensitive
|
||||
edit.AttachmentIDs = existing.AttachmentIDs
|
||||
edit.Attachments = existing.Attachments
|
||||
edit.StatusID = status.ID
|
||||
|
||||
// Edit creation is last update time.
|
||||
edit.CreatedAt = existing.UpdatedAt
|
||||
|
|
|
|||
|
|
@ -254,7 +254,7 @@ func (suite *StatusTestSuite) TestDereferencerRefreshStatusUpdated() {
|
|||
fetchingAccount.Username,
|
||||
testURI,
|
||||
)
|
||||
suite.Equal(testStatusable, statusable)
|
||||
suite.NotNil(statusable)
|
||||
suite.NoError(err)
|
||||
|
||||
// Run through multiple possible edits.
|
||||
|
|
@ -302,7 +302,7 @@ func (suite *StatusTestSuite) TestDereferencerRefreshStatusUpdated() {
|
|||
nil,
|
||||
instantFreshness,
|
||||
)
|
||||
suite.Equal(testStatusable, statusable)
|
||||
suite.NotNil(statusable)
|
||||
suite.NoError(err)
|
||||
|
||||
// verify updated status details.
|
||||
|
|
@ -360,7 +360,7 @@ func (suite *StatusTestSuite) TestDereferencerRefreshStatusReceivedUpdate() {
|
|||
fetchingAccount.Username,
|
||||
testURI,
|
||||
)
|
||||
suite.Equal(testStatusable, statusable)
|
||||
suite.NotNil(statusable)
|
||||
suite.NoError(err)
|
||||
|
||||
// Run through multiple possible edits.
|
||||
|
|
@ -408,7 +408,7 @@ func (suite *StatusTestSuite) TestDereferencerRefreshStatusReceivedUpdate() {
|
|||
testStatusable,
|
||||
instantFreshness,
|
||||
)
|
||||
suite.Equal(testStatusable, statusable)
|
||||
suite.NotNil(statusable)
|
||||
suite.NoError(err)
|
||||
|
||||
// verify updated status details.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue