Skip to content

Commit

Permalink
Merge pull request #1999 from tri-adam/user_agent_fix
Browse files Browse the repository at this point in the history
User Agent Test Fix
  • Loading branch information
bauerm97 authored Sep 16, 2018
2 parents 7fe25f9 + f1bf44c commit 51d4dfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pkg/util/user-agent/agent_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
Expand Down

0 comments on commit 51d4dfb

Please sign in to comment.