feat: wire durable assignments into API

This commit is contained in:
Josh Creek
2026-08-31 23:20:25 +01:00
parent 3ae2daec88
commit 1eb6e8f9f4
3 changed files with 49 additions and 1 deletions
+17
View File
@@ -0,0 +1,17 @@
package api
import (
"context"
"testing"
"time"
)
func TestAssignmentProviderFromStorePreservesPlayerScopedRecoveryBoundary(t *testing.T) {
provider := AssignmentProviderFromStore(nil)
if provider == nil {
t.Fatal("store provider was not created")
}
if _, err := provider(context.Background(), "player-1", "match-1", time.Unix(1000, 0)); err == nil {
t.Fatal("nil store was treated as an available assignment source")
}
}