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:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user