Skip to content

Commit

Permalink
Test all of session.Columns
Browse files Browse the repository at this point in the history
  • Loading branch information
willfaught committed Mar 29, 2016
1 parent e867c25 commit 0e8f353
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions session_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,6 @@ func TestSessionMetadata(t *testing.T) {

var s = newSession(t)

defer s.Close()

exec(s, ksDropIf)
exec(s, ksCreate)

Expand Down Expand Up @@ -103,6 +101,16 @@ func TestSessionMetadata(t *testing.T) {
} else {
t.Fatalf("Actual error %v, expected no error", err)
}

if _, err := s.Columns("gockle_test", "invalid"); err == nil {
t.Error("Actual no error, expected error")
}

s.Close()

if _, err := s.Columns("gockle_test", "test"); err == nil {
t.Error("Actual no error, expected error")
}
}

func TestSessionMock(t *testing.T) {
Expand Down

0 comments on commit 0e8f353

Please sign in to comment.