Skip to content

Commit

Permalink
reran prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
elraphty committed Dec 9, 2023
1 parent 64560e2 commit f08e0a2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
2 changes: 0 additions & 2 deletions db/db_codes_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@ func TestCodeGet(t *testing.T) {
defer db.Close()

gorm.Open("postgres", db)

rows := sqlmock.NewRows([]string{"connection_string", "date_created", "is_used", "date_created"}).AddRow(code.ID, code.ConnectionString, code.IsUsed, code.DateCreated)

mock.ExpectQuery(regexp.QuoteMeta(
`SELECT connection_string, date_created FROM connectioncodes WHERE is_used = ? ORDER BY id DESC LIMIT 1`)).
WithArgs(false).
Expand Down
6 changes: 0 additions & 6 deletions db/store_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ func TestSetCache(t *testing.T) {
var value = "Trial"

InitCache()

Store.SetCache(key, value)

cacheValue, err := Store.GetCache(key)

if err != nil {
Expand All @@ -30,7 +28,6 @@ func TestDeleteCache(t *testing.T) {
InitCache()

Store.SetCache(key, value)

cacheValue, err := Store.GetCache(key)

if err != nil {
Expand All @@ -42,7 +39,6 @@ func TestDeleteCache(t *testing.T) {
}

Store.DeleteCache(key)

_, errD := Store.GetCache(key)

if errD == nil {
Expand All @@ -60,9 +56,7 @@ func TestSetLnCache(t *testing.T) {
}

InitCache()

Store.SetLnCache(key, value)

cacheValue, err := Store.GetLnCache(key)

if err != nil {
Expand Down

0 comments on commit f08e0a2

Please sign in to comment.