chore: seed migration objects batch 19

This commit is contained in:
dev
2026-10-18 13:16:19 +08:00
parent 018a3673a3
commit ff8b216cc0
114 changed files with 50656 additions and 40 deletions
+19
View File
@@ -0,0 +1,19 @@
package main
import "testing"
func TestPbClientHiTenantRoundTrip(t *testing.T) {
original := &ClientComMessage{Hi: &MsgClientHi{
Id: "hi-1",
Version: "1",
Tenant: "acme",
}}
decoded := pbCliDeserialize(pbCliSerialize(original))
if decoded.Hi == nil {
t.Fatal("decoded hi message is nil")
}
if decoded.Hi.Tenant != original.Hi.Tenant {
t.Fatalf("tenant: expected %q, got %q", original.Hi.Tenant, decoded.Hi.Tenant)
}
}