Skip to content

πŸ“š The open-source, offline-first Notion, Obsidian & Confluence alternative. Advanced Markdown, multi-tenant teams, OIDC/SSO, and local S3 backups. Deploy in one command.

Fix tests

Smaug6739aee777e937aa
diff --git a/backend/tests/auth_test.go b/backend/tests/auth_test.go
index 81dbca90..849f447c 100644
--- a/backend/tests/auth_test.go
+++ b/backend/tests/auth_test.go
@@ -16,7 +16,7 @@ func LoginAs(t *testing.T, client *http.Client, username, password string) APIRe
func TestLogin(t *testing.T) {
client := InitClient(t)
t.Run("Correct credentials", func(t *testing.T) {
- r := LoginAs(t, client, "Smaug", "10082005")
+ r := LoginAs(t, client, "Smaug", "41258")
assert.Equal(t, "success", r.Status)
assert.Equal(t, 200, r.StatusCode)
assert.Equal(t, IsValidUser(t, r), true)
diff --git a/backend/tests/helpers.go b/backend/tests/helpers.go
index 87e2a395..8f47109e 100644
--- a/backend/tests/helpers.go
+++ b/backend/tests/helpers.go
@@ -10,11 +10,11 @@ import (
"testing"
)
-const BaseURL = "http://localhost:8080/api"
+const BaseURL = "http://localhost:8201/api"
const ADMIN_USERNAME = "Smaug"
-const ADMIN_PASSWORD = "10082005"
+const ADMIN_PASSWORD = "41258"
const USER_USERNAME = "Hacker"
-const USER_PASSWORD = "10082005"
+const USER_PASSWORD = "41258"
const USER_ID = "543"
type APIResponse struct {