fix: test database setup and scheduling test build error

- Add explicit verification loop in local-dev-2.sh to wait for crussell_test database to be ready before running tests (prevents race condition)
- Remove unused 'handler' variable declaration in scheduling_test.go that was breaking the build
- Tests now properly execute without immediate 'database does not exist' errors
- Real test failures are now visible instead of being masked by setup issues
This commit is contained in:
2026-02-22 00:20:28 +00:00
parent 82ff61cfdd
commit fb0a7fa59b
2 changed files with 21 additions and 5 deletions
@@ -300,7 +300,7 @@ func TestScheduling_CreateExceptionalGroup_NonAdmin(t *testing.T) {
defer cleanup()
userToken := jwt.GenerateUserToken("user-123")
handler := http.HandlerFunc(CreateExceptionalGroup)
newGroup := ExceptionalGroup{
Name: "Summer Hours",