Skip to content

Commit

Permalink
cleanup session test
Browse files Browse the repository at this point in the history
  • Loading branch information
aacanakin committed Jun 4, 2016
1 parent aa667d0 commit 3ef1506
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions session_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,10 @@ func TestSessionAddError(t *testing.T) {
type User struct {
ID string `qb:"constraints:primary_key"`
}
session.AddTable(User{})
err = session.CreateAll()
assert.Nil(t, err)

session.Close()
defer assert.Panics(t, func() {
session.Add(&User{ID: "hello"})
Expand Down

0 comments on commit 3ef1506

Please sign in to comment.