diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/git/repo_commit_test.go | 5 | ||||
-rw-r--r-- | modules/git/repo_stats_test.go | 1 |
2 files changed, 5 insertions, 1 deletions
diff --git a/modules/git/repo_commit_test.go b/modules/git/repo_commit_test.go index 6761a45b7a..c0fdd1697f 100644 --- a/modules/git/repo_commit_test.go +++ b/modules/git/repo_commit_test.go @@ -40,8 +40,9 @@ func TestRepository_GetCommitBranches(t *testing.T) { func TestGetTagCommitWithSignature(t *testing.T) { bareRepo1Path := filepath.Join(testReposDir, "repo1_bare") bareRepo1, err := OpenRepository(bareRepo1Path) - commit, err := bareRepo1.GetCommit("3ad28a9149a2864384548f3d17ed7f38014c9e8a") + assert.NoError(t, err) + commit, err := bareRepo1.GetCommit("3ad28a9149a2864384548f3d17ed7f38014c9e8a") assert.NoError(t, err) assert.NotNil(t, commit) assert.NotNil(t, commit.Signature) @@ -52,6 +53,8 @@ func TestGetTagCommitWithSignature(t *testing.T) { func TestGetCommitWithBadCommitID(t *testing.T) { bareRepo1Path := filepath.Join(testReposDir, "repo1_bare") bareRepo1, err := OpenRepository(bareRepo1Path) + assert.NoError(t, err) + commit, err := bareRepo1.GetCommit("bad_branch") assert.Nil(t, commit) assert.Error(t, err) diff --git a/modules/git/repo_stats_test.go b/modules/git/repo_stats_test.go index 1822af0be6..6fbcb7ac13 100644 --- a/modules/git/repo_stats_test.go +++ b/modules/git/repo_stats_test.go @@ -18,6 +18,7 @@ func TestRepository_GetCodeActivityStats(t *testing.T) { assert.NoError(t, err) timeFrom, err := time.Parse(time.RFC3339, "2016-01-01T00:00:00+00:00") + assert.NoError(t, err) code, err := bareRepo1.GetCodeActivityStats(timeFrom, "") assert.NoError(t, err) |