Skip to content

Commit

Permalink
Typo in BoltDB test
Browse files Browse the repository at this point in the history
  • Loading branch information
parmouraly committed Jun 4, 2020
1 parent 036e1f6 commit 8a905f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/events/db/boltdb_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -692,7 +692,7 @@ func TestPullStatus_UpdateMerge(t *testing.T) {
}

// newTestDB returns a TestDB using a temporary path.
func newTestDB() (*bolt.DB, *db.DefaultBoltDB) {
func newTestDB() (*bolt.DB, *db.BoltDB) {
// Retrieve a temporary path.
f, err := ioutil.TempFile("", "")
if err != nil {
Expand All @@ -718,7 +718,7 @@ func newTestDB() (*bolt.DB, *db.DefaultBoltDB) {
return boltDB, b
}

func newTestDB2(t *testing.T) (*db.DefaultBoltDB, func()) {
func newTestDB2(t *testing.T) (*db.BoltDB, func()) {
tmp, cleanup := TempDir(t)
boltDB, err := db.New(tmp)
Ok(t, err)
Expand Down

0 comments on commit 8a905f9

Please sign in to comment.