Files
bd2/go/internal/server/gamedata/reward_costume_test.go
T
Flechazo d8771caef2 feat(all): add hunting and events, commerce and rewards, binary calendars, GameData caching and login diagnostics
Implement hunting AP and progress, event tasks, exchanges, games, stories and actions; connect battle and reward handling.

Add CashShop plugin and installation, server purchases and entitlements, recharge rules and plugin version metadata.

Distribute binary calendars independently; cache GameData in memory and fix single-connection query deadlocks.

Improve automatic login and recovery diagnostics; document configuration and release flows.
2026-10-05 11:50:31 +08:00

25 lines
531 B
Go

package gamedata
import (
"os"
"testing"
)
func TestRewardCostumeCatalogInstalledSmoke(t *testing.T) {
root := os.Getenv("BD2_GAMEDATA_ROOT")
version := os.Getenv("BD2_GAMEDATA_VERSION")
if root == "" || version == "" {
t.Skip("explicit installed GameData integration environment required")
}
d, e := LoadRewardCostumeCatalog(root, version)
if e != nil {
t.Fatal(e)
}
if len(d.characters) == 0 {
t.Fatal("empty catalog")
}
if _, ok := d.Character(60601); !ok {
t.Fatal("installed event costume omitted")
}
}