From ef48c048b4f1f4d923de4197e78c1b206c14fa4c Mon Sep 17 00:00:00 2001 From: Daniel Cannon Date: Tue, 15 Mar 2016 21:01:06 +0000 Subject: [PATCH] Fixed test --- gorethink.go | 4 ++-- query_control_test.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gorethink.go b/gorethink.go index 41619b65..f7a5a1e3 100644 --- a/gorethink.go +++ b/gorethink.go @@ -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 } diff --git a/query_control_test.go b/query_control_test.go index 122b3985..439459e3 100644 --- a/query_control_test.go +++ b/query_control_test.go @@ -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"})