fix the test error on substitute

This commit is contained in:
Tnze
2019-07-28 19:38:20 +08:00
parent 708097608c
commit 3bd0049f3a
2 changed files with 2 additions and 2 deletions

View File

@ -298,7 +298,7 @@ func (c *Client) login() (err error) {
return fmt.Errorf("authservers_down") return fmt.Errorf("authservers_down")
} }
c.ID, err = uuid.FromString(resp.ID) c.ID, err = uuid.Parse(resp.ID)
if err != nil { if err != nil {
return fmt.Errorf("authservers_down") return fmt.Errorf("authservers_down")
} }

2
go.mod
View File

@ -4,5 +4,5 @@ go 1.12
require ( require (
github.com/google/uuid v1.1.1 github.com/google/uuid v1.1.1
github.com/mattn/go-colorable v0.1.2 // indirect github.com/mattn/go-colorable v0.1.2
) )