Skip to content

Commit

Permalink
Fix of resource list (#11686)
Browse files Browse the repository at this point in the history
* Fix of resource list

* Fixed test
  • Loading branch information
TheTechArch authored Nov 28, 2023
1 parent f9e322b commit 4e25994
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public async Task<ActionResult<List<ListviewServiceResource>>> GetRepositoryReso
listviewServiceResources.Add(listviewResource);
}

return listviewServiceResources != null && listviewServiceResources.Count > 0 ? listviewServiceResources : StatusCode(204);
return listviewServiceResources;
}

[HttpGet]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public async Task GetResourceList_NoContent()
using HttpResponseMessage res = await HttpClient.SendAsync(httpRequestMessage);

// Assert
Assert.Equal(HttpStatusCode.NoContent, res.StatusCode);
Assert.Equal(HttpStatusCode.OK, res.StatusCode);
}
}
}

0 comments on commit 4e25994

Please sign in to comment.