test: update opds, queue, and refresh token test signatures
- Remove handler parameter from test function calls - Update test signatures to match new setupTestServer return values - Fix compilation errors after test helper refactoring - Ensure test consistency for opds, queue, and auth endpoints
This commit is contained in:
@@ -17,7 +17,7 @@ import (
|
||||
)
|
||||
|
||||
func TestListAllQueueItems_Admin(t *testing.T) {
|
||||
ts, db, _, _ := setupTestServer(t)
|
||||
ts, db, _ := setupTestServer(t)
|
||||
defer ts.Close()
|
||||
|
||||
token := loginAdminUser(t, ts, db)
|
||||
@@ -35,7 +35,7 @@ func TestListAllQueueItems_Admin(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestGetDeviceQueueStats(t *testing.T) {
|
||||
ts, db, _, _ := setupTestServer(t)
|
||||
ts, db, _ := setupTestServer(t)
|
||||
defer ts.Close()
|
||||
|
||||
token := loginTestUser(t, ts, db)
|
||||
@@ -72,7 +72,7 @@ func TestGetDeviceQueueStats(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestListDeviceQueueItems(t *testing.T) {
|
||||
ts, db, _, _ := setupTestServer(t)
|
||||
ts, db, _ := setupTestServer(t)
|
||||
defer ts.Close()
|
||||
|
||||
token := loginTestUser(t, ts, db)
|
||||
@@ -109,7 +109,7 @@ func TestListDeviceQueueItems(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestRetryQueueItem(t *testing.T) {
|
||||
ts, db, _, _ := setupTestServer(t)
|
||||
ts, db, _ := setupTestServer(t)
|
||||
defer ts.Close()
|
||||
|
||||
token := loginTestUser(t, ts, db)
|
||||
@@ -125,7 +125,7 @@ func TestRetryQueueItem(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestDeleteQueueItem(t *testing.T) {
|
||||
ts, db, _, _ := setupTestServer(t)
|
||||
ts, db, _ := setupTestServer(t)
|
||||
defer ts.Close()
|
||||
|
||||
token := loginTestUser(t, ts, db)
|
||||
@@ -141,7 +141,7 @@ func TestDeleteQueueItem(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestClearDeviceQueue(t *testing.T) {
|
||||
ts, db, _, _ := setupTestServer(t)
|
||||
ts, db, _ := setupTestServer(t)
|
||||
defer ts.Close()
|
||||
|
||||
token := loginTestUser(t, ts, db)
|
||||
@@ -174,7 +174,7 @@ func TestClearDeviceQueue(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestQueueEndpoints_Unauthorized(t *testing.T) {
|
||||
ts, _, _, _ := setupTestServer(t)
|
||||
ts, _, _ := setupTestServer(t)
|
||||
defer ts.Close()
|
||||
|
||||
tests := []struct {
|
||||
|
||||
Reference in New Issue
Block a user