Skip to content

Commit

Permalink
Fix CI Failing (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
garrettladley authored Jan 27, 2024
1 parent f2d0a92 commit cd5c560
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions backend/tests/api/tag_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,13 +203,15 @@ func TestUpdateTagWorksUpdateName(t *testing.T) {
}

func TestUpdateTagWorksUpdateCategory(t *testing.T) {
existingAppAssert, categoryUUID, tagUUID := CreateSampleTag(t)
existingAppAssert, _, tagUUID := CreateSampleTag(t)

technologyCategory := *SampleCategoryFactory()
technologyCategory["name"] = "Technology"

var technologyCategoryUUID uuid.UUID

var AssertNewCategoryBodyRespDB = func(app TestApp, assert *assert.A, resp *http.Response) {
AssertCategoryWithBodyRespDBMostRecent(app, assert, resp, &technologyCategory)
technologyCategoryUUID = AssertCategoryWithBodyRespDBMostRecent(app, assert, resp, &technologyCategory)
}

TestRequest{
Expand All @@ -223,7 +225,7 @@ func TestUpdateTagWorksUpdateCategory(t *testing.T) {
},
)

technologyTag := *SampleTagFactory(categoryUUID)
technologyTag := *SampleTagFactory(technologyCategoryUUID)

var AssertUpdatedTagBodyRespDB = func(app TestApp, assert *assert.A, resp *http.Response) {
AssertTagWithBodyRespDB(app, assert, resp, &technologyTag)
Expand Down

0 comments on commit cd5c560

Please sign in to comment.