mirror of
https://github.com/Mezeporta/Erupe.git
synced 2026-03-22 07:32:32 +01:00
fix(test): initialize ErupeConfig in cafe item tests
Required after cherry-picking 3d0114c which added RealClientMode check.
This commit is contained in:
@@ -5,10 +5,18 @@ import (
|
||||
"testing"
|
||||
|
||||
"erupe-ce/common/byteframe"
|
||||
"erupe-ce/config"
|
||||
"erupe-ce/network"
|
||||
"erupe-ce/network/clientctx"
|
||||
)
|
||||
|
||||
func init() {
|
||||
// Initialize ErupeConfig for tests that access it
|
||||
config.ErupeConfig = &config.Config{
|
||||
RealClientMode: config.ZZ, // Default to ZZ for tests
|
||||
}
|
||||
}
|
||||
|
||||
func TestMsgMhfAcquireCafeItemOpcode(t *testing.T) {
|
||||
pkt := &MsgMhfAcquireCafeItem{}
|
||||
if pkt.Opcode() != network.MSG_MHF_ACQUIRE_CAFE_ITEM {
|
||||
|
||||
Reference in New Issue
Block a user