File tree Expand file tree Collapse file tree 4 files changed +8
-1
lines changed Expand file tree Collapse file tree 4 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -139,6 +139,7 @@ func TestRelease_MirrorDelete(t *testing.T) {
139
139
assert .True (t , ok )
140
140
141
141
count , err := GetReleaseCountByRepoID (mirror .ID , findOptions )
142
+ assert .NoError (t , err )
142
143
assert .EqualValues (t , initCount + 1 , count )
143
144
144
145
release , err := GetRelease (repo .ID , "v0.2" )
@@ -149,5 +150,6 @@ func TestRelease_MirrorDelete(t *testing.T) {
149
150
assert .True (t , ok )
150
151
151
152
count , err = GetReleaseCountByRepoID (mirror .ID , findOptions )
153
+ assert .NoError (t , err )
152
154
assert .EqualValues (t , initCount , count )
153
155
}
Original file line number Diff line number Diff line change @@ -88,6 +88,7 @@ func TestUpdateRepositoryVisibilityChanged(t *testing.T) {
88
88
89
89
// Get sample repo and change visibility
90
90
repo , err := GetRepositoryByID (9 )
91
+ assert .NoError (t , err )
91
92
repo .IsPrivate = true
92
93
93
94
// Update it
Original file line number Diff line number Diff line change @@ -40,8 +40,9 @@ func TestRepository_GetCommitBranches(t *testing.T) {
40
40
func TestGetTagCommitWithSignature (t * testing.T ) {
41
41
bareRepo1Path := filepath .Join (testReposDir , "repo1_bare" )
42
42
bareRepo1 , err := OpenRepository (bareRepo1Path )
43
- commit , err := bareRepo1 . GetCommit ( "3ad28a9149a2864384548f3d17ed7f38014c9e8a" )
43
+ assert . NoError ( t , err )
44
44
45
+ commit , err := bareRepo1 .GetCommit ("3ad28a9149a2864384548f3d17ed7f38014c9e8a" )
45
46
assert .NoError (t , err )
46
47
assert .NotNil (t , commit )
47
48
assert .NotNil (t , commit .Signature )
@@ -52,6 +53,8 @@ func TestGetTagCommitWithSignature(t *testing.T) {
52
53
func TestGetCommitWithBadCommitID (t * testing.T ) {
53
54
bareRepo1Path := filepath .Join (testReposDir , "repo1_bare" )
54
55
bareRepo1 , err := OpenRepository (bareRepo1Path )
56
+ assert .NoError (t , err )
57
+
55
58
commit , err := bareRepo1 .GetCommit ("bad_branch" )
56
59
assert .Nil (t , commit )
57
60
assert .Error (t , err )
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ func TestRepository_GetCodeActivityStats(t *testing.T) {
18
18
assert .NoError (t , err )
19
19
20
20
timeFrom , err := time .Parse (time .RFC3339 , "2016-01-01T00:00:00+00:00" )
21
+ assert .NoError (t , err )
21
22
22
23
code , err := bareRepo1 .GetCodeActivityStats (timeFrom , "" )
23
24
assert .NoError (t , err )
You can’t perform that action at this time.
0 commit comments