Skip to content

Commit

Permalink
fix failing test assertion
Browse files Browse the repository at this point in the history
small refactors
  • Loading branch information
chelseakomlo committed Aug 9, 2017
1 parent 3630cbc commit e255d75
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/job_resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ func (c *Client) JobResources() *JobResources {

// List returns a list of all resources for a particular context. If a
// context is not specified, matches for all contezts are returned.
func (j *JobResources) List(prefix string, context string) (*structs.ResourceListResponse, error) {
func (j *JobResources) List(prefix, context string) (*structs.ResourceListResponse, error) {
var resp structs.ResourceListResponse
req := &structs.ResourceListRequest{Prefix: prefix, Context: context}

Expand Down
2 changes: 1 addition & 1 deletion api/job_resources_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ func TestJobResource_PrefixList(t *testing.T) {

jobMatches := resp.Matches["jobs"]
assert.Equal(1, len(jobMatches))
assert.Equal(job.ID, jobMatches[0])
assert.Equal(id, jobMatches[0])
}

0 comments on commit e255d75

Please sign in to comment.