Files
im_server/server/store/tenant_store_test.go
T
2026-08-11 15:59:57 +08:00

14 lines
304 B
Go

package store
import (
"testing"
"github.com/tinode/chat/server/store/types"
)
func TestForTenantRejectsZero(t *testing.T) {
if scoped, err := ForTenant(types.ZeroTenantID); err != types.ErrMalformed || scoped != nil {
t.Fatalf("ForTenant(0) = (%v, %v), want (nil, malformed)", scoped, err)
}
}