Skip to content

Commit

Permalink
Revert "fix test"
Browse files Browse the repository at this point in the history
This reverts commit 9efe74c.
  • Loading branch information
azbcww committed Nov 27, 2023
1 parent 9efe74c commit d87efdd
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions repository/gorm/stamp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,14 +202,11 @@ func TestRepositoryImpl_GetAllStamps(t *testing.T) {
repo, assert, _ := setup(t, ex1)

n := 10
arr, err := repo.GetAllStamps(repository.StampTypeAll)
if len(arr) == 0 {
for i := 0; i < 10; i++ {
mustMakeStamp(t, repo, rand, uuid.Nil)
}
arr, err = repo.GetAllStamps(repository.StampTypeAll)
for i := 0; i < 10; i++ {
mustMakeStamp(t, repo, rand, uuid.Nil)
}

arr, err := repo.GetAllStamps(repository.StampTypeAll)
if assert.NoError(err) {
assert.Len(arr, n)
}
Expand Down Expand Up @@ -373,15 +370,11 @@ func TestRepositoryImpl_StampThumbnailExists(t *testing.T) {
repo, assert, _ := setup(t, ex1)

n := 10

arr, err := repo.GetAllStamps(repository.StampTypeAll)
if len(arr) == 0 {
for i := 0; i < 10; i++ {
mustMakeStamp(t, repo, rand, uuid.Nil)
}
arr, err = repo.GetAllStamps(repository.StampTypeAll)
for i := 0; i < 10; i++ {
mustMakeStamp(t, repo, rand, uuid.Nil)
}

arr, err := repo.GetAllStamps(repository.StampTypeAll)
if assert.NoError(err) {
assert.Len(arr, n)
}
Expand Down

0 comments on commit d87efdd

Please sign in to comment.