Fix test regexp.
authorTom Clegg <tom@curii.com>
Wed, 5 May 2021 17:32:29 +0000 (13:32 -0400)
committerTom Clegg <tom@curii.com>
Wed, 5 May 2021 17:37:38 +0000 (13:37 -0400)
amends commit 51d072fb24a69336c09fe4320102f5797db0d5e0

No issue #

Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@curii.com>

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)