diff --git a/src/pkg/util/user-agent/agent_test.go b/src/pkg/util/user-agent/agent_test.go index 14126c1b7a..81ebc11574 100644 --- a/src/pkg/util/user-agent/agent_test.go +++ b/src/pkg/util/user-agent/agent_test.go @@ -13,7 +13,7 @@ import ( func TestSingularityVersion(t *testing.T) { InitValue("singularity", "3.0.0-alpha.1-303-gaed8d30-dirty") - re := regexp.MustCompile("Singularity/[[:digit:]]+(.[[:digit:]]+){2} \\(Linux [[:alnum:]]+\\) Go/[[:digit:]]+(.[[:digit:]]+){2}") + re := regexp.MustCompile("Singularity/[[:digit:]]+(.[[:digit:]]+){2} \\(Linux [[:alnum:]]+\\) Go/[[:digit:]]+(.[[:digit:]]+){1,2}") if !re.MatchString(Value()) { t.Fatalf("user agent did not match regexp") }