Skip to content

Commit

Permalink
test: fix problematic test
Browse files Browse the repository at this point in the history
  • Loading branch information
DannyBedard committed Feb 26, 2024
1 parent 4c6f193 commit 8055b0f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: testing

on:
push:
pull_request:
branches: [master]
workflow_dispatch:
Expand Down
10 changes: 6 additions & 4 deletions server.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,12 @@ func (c *Client) GetServerInfo() (Server, error) {
return Server{}, err
}

err = json.Unmarshal(resp.Response, &server)
if err != nil {
return Server{}, fmt.Errorf("failed to unmarshall response body. error: %w", err)
}
fmt.Println(resp.Response)

// err = json.Unmarshal(resp.Response, &server)
// if err != nil {
// return Server{}, fmt.Errorf("failed to unmarshall response body. error: %w", err)
// }

return server, nil
}
Expand Down

0 comments on commit 8055b0f

Please sign in to comment.