Fix DB schema, write a basic unittest for the DB operations
This commit is contained in:
parent
ff2f973523
commit
a518ca79da
6 changed files with 183 additions and 124 deletions
|
|
@ -13,6 +13,8 @@ func TestConnect(t *testing.T) {
|
|||
if err != nil {
|
||||
t.Error(err)
|
||||
}
|
||||
defer os.Remove(tmpfile.Name())
|
||||
|
||||
sess, err := Connect(tmpfile.Name())
|
||||
if err != nil {
|
||||
t.Error(err)
|
||||
|
|
@ -27,5 +29,4 @@ func TestConnect(t *testing.T) {
|
|||
log.Fatal("missing tables")
|
||||
}
|
||||
|
||||
defer os.Remove(tmpfile.Name())
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue