Skip to content

Commit 340ee2f

Browse files
committed
Improve error handling in test files
1 parent 024b50c commit 340ee2f

File tree

12 files changed

+88
-808
lines changed

12 files changed

+88
-808
lines changed

apps/server/.idea/.gitignore

Lines changed: 0 additions & 8 deletions
This file was deleted.

apps/server/.idea/modules.xml

Lines changed: 0 additions & 8 deletions
This file was deleted.

apps/server/.idea/server.iml

Lines changed: 0 additions & 9 deletions
This file was deleted.

apps/server/.idea/vcs.xml

Lines changed: 0 additions & 6 deletions
This file was deleted.

apps/server/api/internal/content/retrieve.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ func (cr *ContentRoutes) GetFilesBySubject(c fiber.Ctx) error {
5757

5858
// Set pagination headers
5959
c.Set("X-Total-Count", fmt.Sprintf("%d", len(items)))
60-
c.Set("X-Total-Pages", fmt.Sprintf("%s", "1"))
60+
c.Set("X-Total-Pages", "1")
6161
c.Set("X-Page-Size", fmt.Sprintf("%d", len(items)))
6262

6363
// Return list of files
@@ -89,7 +89,7 @@ func (cr *ContentRoutes) GetFoldersBySubjectParent(c fiber.Ctx) error {
8989

9090
// Set pagination headers
9191
c.Set("X-Total-Count", fmt.Sprintf("%d", len(items)))
92-
c.Set("X-Total-Pages", fmt.Sprintf("%s", "1"))
92+
c.Set("X-Total-Pages", "1")
9393
c.Set("X-Page-Size", fmt.Sprintf("%d", len(items)))
9494

9595
// Return list of folders

apps/server/api/response/lib.go

Lines changed: 0 additions & 299 deletions
This file was deleted.

apps/server/lib/circuit_breaker.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
)
1414

1515
// CircuitState represents the current state of the circuit breaker
16-
type CircuitState int
16+
type CircuitState int32
1717

1818
const (
1919
// StateClosed indicates the circuit is closed and requests are allowed

0 commit comments

Comments
 (0)