aboutsummaryrefslogtreecommitdiffstats
path: root/models/action_test.go
diff options
context:
space:
mode:
authorEthan Koenig <ethantkoenig@gmail.com>2017-10-04 21:43:04 -0700
committerLauris BH <lauris@nix.lv>2017-10-05 07:43:04 +0300
commitaa962deec037375a7cfae3b96094becdfe48e778 (patch)
treeb4322667ac85dd945c0a6aa65c96ba4fa9b96654 /models/action_test.go
parente1266a19c847600aceee6f16875e0384c7c0f736 (diff)
downloadgitea-aa962deec037375a7cfae3b96094becdfe48e778.tar.gz
gitea-aa962deec037375a7cfae3b96094becdfe48e778.zip
Replace deprecated Id method with ID (#2655)
Diffstat (limited to 'models/action_test.go')
-rw-r--r--models/action_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/models/action_test.go b/models/action_test.go
index 66400cd50c..f329195bfd 100644
--- a/models/action_test.go
+++ b/models/action_test.go
@@ -76,7 +76,7 @@ func TestRenameRepoAction(t *testing.T) {
assert.NoError(t, RenameRepoAction(user, oldRepoName, repo))
AssertExistsAndLoadBean(t, actionBean)
- _, err := x.Id(repo.ID).Cols("name", "lower_name").Update(repo)
+ _, err := x.ID(repo.ID).Cols("name", "lower_name").Update(repo)
assert.NoError(t, err)
CheckConsistencyFor(t, &Action{})
}
@@ -337,7 +337,7 @@ func TestTransferRepoAction(t *testing.T) {
assert.NoError(t, TransferRepoAction(user2, user2, repo))
AssertExistsAndLoadBean(t, actionBean)
- _, err := x.Id(repo.ID).Cols("owner_id").Update(repo)
+ _, err := x.ID(repo.ID).Cols("owner_id").Update(repo)
assert.NoError(t, err)
CheckConsistencyFor(t, &Action{})
}