Skip to content

Commit ef48c04

Browse files
committed
Fixed test
1 parent a23dcf6 commit ef48c04

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

gorethink.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ func SetVerbose(verbose bool) {
3232

3333
// SetTags allows you to override the tags used when decoding or encoding
3434
// structs. The driver will check for the tags in the same order that they were
35-
// passed into this function. If nil is passed then the driver will just check
36-
// for the gorethink tag.
35+
// passed into this function. If no parameters are passed then the driver will
36+
// default to checking for the gorethink tag.
3737
func SetTags(tags ...string) {
3838
encoding.Tags = tags
3939
}

query_control_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ func (s *RethinkSuite) TestControlStruct(c *test.C) {
107107

108108
func (s *RethinkSuite) TestControlStructTags(c *test.C) {
109109
SetTags("gorethink", "json")
110-
defer SetTags(nil)
110+
defer SetTags()
111111

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

0 commit comments

Comments
 (0)