Skip to content

Commit

Permalink
Add DisableCacher to test to add better code coverage
Browse files Browse the repository at this point in the history
Signed-off-by: Garrett Thornburg <[email protected]>
  • Loading branch information
film42 committed Jan 31, 2019
1 parent 1d48ee8 commit cc27c50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion store_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ func (s *StoreSuite) TestDebugWith() {
queries = append(queries, q)
}
s.store.DebugWith(logger).RawQuery("SELECT 1 + 1")
s.store.DebugWith(logger).RawExec("UPDATE foo SET bar = 1")
s.store.DisableCacher().DebugWith(logger).RawExec("UPDATE foo SET bar = 1")

s.Regexp("kallax: Query: \\(\\d+\\.\\d+.+\\) SELECT 1 \\+ 1", queries[0])
s.Regexp("kallax: Exec: \\(\\d+\\.\\d+.+\\) UPDATE foo SET bar = 1", queries[1])
Expand Down

0 comments on commit cc27c50

Please sign in to comment.