Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use a helper method to setup Badger before running test.
Most of the tests just setup a temporary directory, open Badger and then run the test. This commit refactors the repeated code in each test into a helper method. Some tests have been left alone because they do something extra like setting different options, closing/re-opening the DB etc. Fixes dgraph-io#304.
- Loading branch information