forked from pocketbase/pocketbase
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
removed delete worker pool since it is no longer needed and changed t…
…he files delete operation to run in the background (will be replaced with job queue)
- Loading branch information
1 parent
f792a9e
commit 012546e
Showing
5 changed files
with
42 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ import ( | |
"path/filepath" | ||
"strings" | ||
"testing" | ||
"time" | ||
|
||
"github.com/labstack/echo/v5" | ||
"github.com/pocketbase/pocketbase/models" | ||
|
@@ -736,6 +737,7 @@ func TestRecordCrudDelete(t *testing.T) { | |
// users, [email protected] | ||
"Authorization": "eyJhbGciOiJIUzI1NiJ9.eyJpZCI6IjRxMXhsY2xtZmxva3UzMyIsInR5cGUiOiJhdXRoUmVjb3JkIiwiY29sbGVjdGlvbklkIjoiX3BiX3VzZXJzX2F1dGhfIiwiZXhwIjoyMjA4OTg1MjYxfQ.UwD8JvkbQtXpymT09d7J6fdA0aP9g4FJ1GPh_ggEkzc", | ||
}, | ||
Delay: 100 * time.Millisecond, | ||
ExpectedStatus: 204, | ||
ExpectedEvents: map[string]int{ | ||
"OnModelAfterDelete": 3, // +2 because of the external auths | ||
|
@@ -822,6 +824,7 @@ func TestRecordCrudDelete(t *testing.T) { | |
RequestHeaders: map[string]string{ | ||
"Authorization": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6InN5d2JoZWNuaDQ2cmhtMCIsInR5cGUiOiJhZG1pbiIsImV4cCI6MjIwODk4NTI2MX0.M1m--VOqGyv0d23eeUc0r9xE8ZzHaYVmVFw1VZW6gT8", | ||
}, | ||
Delay: 100 * time.Millisecond, | ||
ExpectedStatus: 204, | ||
ExpectedEvents: map[string]int{ | ||
"OnModelBeforeDelete": 2, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters