diff options
author | 6543 <6543@obermui.de> | 2020-10-13 02:01:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-12 20:01:57 -0400 |
commit | f4ffe8ed54cc49b8c0ca20a8aa1db6732f39a8a0 (patch) | |
tree | d731013c3489f8deda0a2c81ad4455249e9793c4 /models/issue_label_test.go | |
parent | f2858600af811c584c82b45efbf343b53821575b (diff) | |
download | gitea-f4ffe8ed54cc49b8c0ca20a8aa1db6732f39a8a0.tar.gz gitea-f4ffe8ed54cc49b8c0ca20a8aa1db6732f39a8a0.zip |
Save TimeStamps for Star, Label, Follow, Watch and Collaboration to Database (#13124)
* Add timestamps to Star, Label, LanguageStat, Follow, Watch and Collaboration
* Star do not need updated
* LanguageStat do not need update (they wont change)
* fix unit-test
Diffstat (limited to 'models/issue_label_test.go')
-rw-r--r-- | models/issue_label_test.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/models/issue_label_test.go b/models/issue_label_test.go index 982f6b165a..b3fe4d8773 100644 --- a/models/issue_label_test.go +++ b/models/issue_label_test.go @@ -263,7 +263,10 @@ func TestUpdateLabel(t *testing.T) { label.Name = update.Name assert.NoError(t, UpdateLabel(update)) newLabel := AssertExistsAndLoadBean(t, &Label{ID: 1}).(*Label) - assert.Equal(t, *label, *newLabel) + assert.EqualValues(t, label.ID, newLabel.ID) + assert.EqualValues(t, label.Color, newLabel.Color) + assert.EqualValues(t, label.Name, newLabel.Name) + assert.EqualValues(t, label.Description, newLabel.Description) CheckConsistencyFor(t, &Label{}, &Repository{}) } |