Skip to content

Commit

Permalink
Fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
dancannon committed Mar 15, 2016
1 parent a23dcf6 commit ef48c04
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions gorethink.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ func SetVerbose(verbose bool) {

// SetTags allows you to override the tags used when decoding or encoding
// structs. The driver will check for the tags in the same order that they were
// passed into this function. If nil is passed then the driver will just check
// for the gorethink tag.
// passed into this function. If no parameters are passed then the driver will
// default to checking for the gorethink tag.
func SetTags(tags ...string) {
encoding.Tags = tags
}
2 changes: 1 addition & 1 deletion query_control_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ func (s *RethinkSuite) TestControlStruct(c *test.C) {

func (s *RethinkSuite) TestControlStructTags(c *test.C) {
SetTags("gorethink", "json")
defer SetTags(nil)
defer SetTags()

var response map[string]interface{}
query := Expr(TagsTest{"1", "2", "3"})
Expand Down

0 comments on commit ef48c04

Please sign in to comment.