From 782ceb74a5d264dfc4f602be18fc448195fd4ee8 Mon Sep 17 00:00:00 2001 From: Paul Bonser Date: Thu, 2 Feb 2017 19:19:51 -0600 Subject: [PATCH] Be a bit more flexible with error messages --- goes_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/goes_test.go b/goes_test.go index e776b5b..48c504c 100644 --- a/goes_test.go +++ b/goes_test.go @@ -115,7 +115,7 @@ func (s *GoesTestSuite) TestRunMissingIndex(c *C) { } _, err := conn.Do(&r) - c.Assert(err.Error(), Equals, "[404] IndexMissingException[[i] missing]") + c.Assert(err.Error(), Matches, "\\[40.\\] .*i.*") } func (s *GoesTestSuite) TestCreateIndex(c *C) { @@ -1473,7 +1473,7 @@ func (s *GoesTestSuite) TestRemoveAlias(c *C) { // Get document via alias _, err = conn.Get(aliasName, docType, docID, url.Values{}) - c.Assert(err.Error(), Equals, "[404] IndexMissingException[["+aliasName+"] missing]") + c.Assert(err.Error(), Matches, "\\[404\\] .*"+aliasName+".*") } func (s *GoesTestSuite) TestAliasExists(c *C) {