Skip to content

Commit

Permalink
chore: Remove unused code in database_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
waveyboym committed Sep 5, 2024
1 parent 3788608 commit f918c85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions occupi-backend/tests/database_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8116,7 +8116,7 @@ func TestFindAndRemoveOfficeHours(t *testing.T) {
// Create mock responses for FindOne and DeleteOne operations
mt.AddMockResponses(
mtest.CreateCursorResponse(1, configs.GetMongoDBName()+".OfficeHours", mtest.FirstBatch, bson.D{
{Key: "email", Value: email},
{Key: "email", Value: expectedOfficeHours.Email},
{Key: "entered", Value: expectedOfficeHours.Entered},
{Key: "exited", Value: expectedOfficeHours.Exited},
}),
Expand All @@ -8129,7 +8129,7 @@ func TestFindAndRemoveOfficeHours(t *testing.T) {
DB: mt.Client,
}

officeHours, err := database.FindAndRemoveOfficeHours(ctx, appsession, email)
_, err := database.FindAndRemoveOfficeHours(ctx, appsession, email)
assert.NoError(t, err, "Expected no error for successful find and remove")
//assert.Equal(t, expectedOfficeHours, officeHours, "Expected matching OfficeHours after successful find and remove")
})
Expand Down

0 comments on commit f918c85

Please sign in to comment.