Skip to content

Commit

Permalink
Issue #178
Browse files Browse the repository at this point in the history
CHANGE:
  - database/mysql/database_test.go Now doesnt drop WhiteTorrents table.
  • Loading branch information
Ianleeclark committed Dec 18, 2016
1 parent e1149e0 commit bc23c12
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions database/mysql/database_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,11 +154,12 @@ func TestUpdatePeerStats(t *testing.T) {
}

func TestMain(m *testing.M) {
DBCONN.DropTableIfExists(
&TrackerStats{},
dbConn, _ := OpenConnectionWithConfig(&CONFIG)
dbConn.DropTableIfExists(
&PeerStats{},
&Torrent{},
&WhiteTorrent{},
&TrackerStats{},
)
InitDB(dbConn)
os.Exit(m.Run())
}

0 comments on commit bc23c12

Please sign in to comment.