Merge branch '17603-nginx-webshell-vhost-fix'
[arvados.git] / sdk / go / arvados / duration_test.go
index fa0ef0aeca80d72448c65748efb6833e8db01812..6a198e69400201f803566b4e19022158956c50be 100644 (file)
@@ -56,7 +56,7 @@ func (s *DurationSuite) TestUnmarshalJSON(c *check.C) {
        err = json.Unmarshal([]byte(`{"D":"1"}`), &d)
        c.Check(err, check.ErrorMatches, `.*missing unit in duration "?1"?`)
        err = json.Unmarshal([]byte(`{"D":"foobar"}`), &d)
-       c.Check(err, check.ErrorMatches, `.*invalid duration "foobar"`)
+       c.Check(err, check.ErrorMatches, `.*invalid duration "?foobar"?`)
        err = json.Unmarshal([]byte(`{"D":"60s"}`), &d)
        c.Check(err, check.IsNil)
        c.Check(d.D.Duration(), check.Equals, time.Minute)