Skip to content

Commit

Permalink
chagne test
Browse files Browse the repository at this point in the history
  • Loading branch information
SimoneDutto committed Dec 16, 2024
1 parent 4bbba8b commit 2c1fd46
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion internal/dbmodel/group_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func TestGroupEntry(t *testing.T) {
c.Assert(ge3, qt.DeepEquals, ge)
}

// test we hard delete groups
// test we hard delete groups, so when we can recreate the group with the same name after deleting it.
func TestHardDeleteGroupEntry(t *testing.T) {
c := qt.New(t)
db := gormDB(t)
Expand All @@ -52,4 +52,9 @@ func TestHardDeleteGroupEntry(t *testing.T) {

result := db.First(&ge)
c.Assert(result.Error, qt.ErrorMatches, "record not found")

ge1 := dbmodel.GroupEntry{
Name: "test-group-1",
}
c.Assert(db.Create(&ge1).Error, qt.IsNil)
}

0 comments on commit 2c1fd46

Please sign in to comment.