mirror of
https://github.com/go-gitea/gitea.git
synced 2025-08-14 14:55:51 +00:00
Fix unit test on TestIssueLoadAttributes
This commit is contained in:
parent
f5717d045c
commit
41be926458
@ -420,7 +420,7 @@ func TestIssueLoadAttributes(t *testing.T) {
|
|||||||
assert.NotNil(t, issue.Projects[0])
|
assert.NotNil(t, issue.Projects[0])
|
||||||
assert.Equal(t, int64(1), issue.Projects[0].ID)
|
assert.Equal(t, int64(1), issue.Projects[0].ID)
|
||||||
} else {
|
} else {
|
||||||
assert.Nil(t, issue.Projects[0])
|
assert.Nil(t, issue.Projects)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user