Skip to content

Commit

Permalink
Use a helper method to setup Badger before running test.
Browse files Browse the repository at this point in the history
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
deepakjois committed Nov 29, 2017
1 parent ee1bfd6 commit bc45f5c
Show file tree
Hide file tree
Showing 2 changed files with 1,210 additions and 1,365 deletions.
Loading

0 comments on commit bc45f5c

Please sign in to comment.