Skip to content

Commit

Permalink
tidy up
Browse files Browse the repository at this point in the history
  • Loading branch information
ChihChengLiang committed Nov 4, 2020
1 parent 79b7152 commit 47c1231
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions tests/tx_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import (

func setupDB() (db core.DB, cleanup func(), err error) {
tmpfile, err := ioutil.TempFile("", "test.*.db")
println(tmpfile.Name())
if err != nil {
return
}
Expand All @@ -32,7 +31,6 @@ func setupDB() (db core.DB, cleanup func(), err error) {
m := migrations.NewGormigrate(db.Instance, migrations.DefaultOptions, allMigrations)
m.Migrate()
cleanup = func() {
println("Closing DB and removing file")
db.Close()
os.Remove(tmpfile.Name())
}
Expand All @@ -48,7 +46,6 @@ func TestPopTx(t *testing.T) {
}
defer cleanup()

println("Testing start")
var txType uint64 = 1
config.GlobalCfg.TxsPerBatch = 2

Expand Down

0 comments on commit 47c1231

Please sign in to comment.