Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions backend/services/matchmaking_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ import (
func TestMatchmakingService(t *testing.T) {
// Get the singleton service
ms := GetMatchmakingService()
t.Cleanup(func() {
ms.RemoveFromPool("user1")
ms.RemoveFromPool("user2")
})

// Test adding users to pool (but not starting matchmaking yet)
err := ms.AddToPool("user1", "Alice", 1200)
Expand Down Expand Up @@ -67,6 +71,11 @@ func TestMatchmakingService(t *testing.T) {

func TestEloTolerance(t *testing.T) {
ms := GetMatchmakingService()
t.Cleanup(func() {
ms.RemoveFromPool("user1")
ms.RemoveFromPool("user2")
ms.RemoveFromPool("user3")
})

// Add users with different Elo ratings (but don't start matchmaking yet)
ms.AddToPool("user1", "Alice", 1200) // Range: 1000-1400
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/Pages/Authentication.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const LeftSection = () => (
<svg>
{/* SVG Content */}
</svg>
Arguehub
DebateAI
</Link>
</div>
<div className="flex justify-center items-center flex-1 min-h-0 p-6">
Expand Down
Loading