Skip to content

Commit 4b4da6b

Browse files
committed
add comment to explain the dangling ID in the fixture
1 parent bf728b8 commit 4b4da6b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

models/fixtures/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,6 @@
6161
user_id: 1
6262
op_type: 12 # close issue
6363
act_user_id: 1
64-
repo_id: 1700
64+
repo_id: 1700 # dangling intentional
6565
is_private: false
6666
created_unix: 1603011541

models/unittest/consistency.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ func init() {
175175

176176
checkForActionConsistency := func(t assert.TestingT, bean interface{}) {
177177
action := reflectionWrap(bean)
178-
if action.int("RepoID") != 1700 {
178+
if action.int("RepoID") != 1700 { // dangling intentional
179179
repoRow := AssertExistsAndLoadMap(t, "repository", builder.Eq{"id": action.int("RepoID")})
180180
assert.Equal(t, parseBool(repoRow["is_private"]), action.bool("IsPrivate"), "action: %+v", action)
181181
}

0 commit comments

Comments
 (0)