Skip to content

Commit

Permalink
fix failing build count test
Browse files Browse the repository at this point in the history
  • Loading branch information
bradrydzewski committed May 2, 2018
1 parent 9ffd5ad commit 4063d29
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions store/datastore/builds_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
package datastore

import (
"fmt"
"testing"

"github.com/drone/drone/model"
Expand Down Expand Up @@ -60,6 +61,11 @@ func TestBuilds(t *testing.T) {
g.Assert(build.ID != 0).IsTrue()
g.Assert(build.Number).Equal(1)
g.Assert(build.Commit).Equal("85f8c029b902ed9400bc600bac301a0aadb144ac")

count, err := s.GetBuildCount()
g.Assert(err == nil).IsTrue()
g.Assert(count > 0).IsTrue()
fmt.Println("GOT COUNT", count)
})

g.It("Should Put a Build", func() {
Expand Down Expand Up @@ -268,12 +274,6 @@ func TestBuilds(t *testing.T) {
g.Assert(builds[0].RepoID).Equal(build2.RepoID)
g.Assert(builds[0].Status).Equal(build2.Status)
})

g.It("Should count Builds", func() {
count, err := s.GetBuildCount()
g.Assert(err == nil).IsTrue()
g.Assert(count > 0).IsTrue()
})
})
}

Expand Down

0 comments on commit 4063d29

Please sign in to comment.