Refactor string -> dbBackendType

This commit is contained in:
Jae Kwon
2018-01-24 15:55:31 -08:00
committed by Anton Kaliaev
parent b95cac5f4f
commit f6dbe9ba05
8 changed files with 22 additions and 20 deletions

View File

@ -45,7 +45,7 @@ func checkValuePanics(t *testing.T, itr Iterator) {
assert.Panics(t, func() { itr.Key() }, "checkValuePanics expected panic but didn't")
}
func newTempDB(t *testing.T, backend string) (db DB) {
func newTempDB(t *testing.T, backend dbBackendType) (db DB) {
dir, dirname := cmn.Tempdir("test_go_iterator")
db = NewDB("testdb", backend, dirname)
dir.Close()