Skip to content

Commit

Permalink
fix: remove unnecessary permission creation in test
Browse files Browse the repository at this point in the history
  • Loading branch information
im-adithya committed Dec 13, 2023
1 parent c64f527 commit 27c4589
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -314,13 +314,6 @@ func TestHandleEvent(t *testing.T) {
newMaxAmount = 1000
err = svc.db.Model(&AppPermission{}).Where("app_id = ?", app.ID).Update("request_method", NIP_47_PAY_INVOICE_METHOD).Update("max_amount", newMaxAmount).Error
assert.NoError(t, err)
// create a second permission for getting the budget
appPermission = &AppPermission{
AppId: app.ID,
App: app,
RequestMethod: NIP_47_PAY_KEYSEND_METHOD,
ExpiresAt: expiresAt,
}
err = svc.db.Create(appPermission).Error
res, err = svc.HandleEvent(ctx, &nostr.Event{
ID: "test_pay_keysend_event_2",
Expand Down

0 comments on commit 27c4589

Please sign in to comment.