MCPcopy
hub / github.com/hashicorp/memberlist / TestCreate_secretKeyEmpty

Function TestCreate_secretKeyEmpty

memberlist_test.go:235–251  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

233}
234
235func TestCreate_secretKeyEmpty(t *testing.T) {
236 c := DefaultLANConfig()
237 c.BindAddr = getBindAddr().String()
238 c.SecretKey = make([]byte, 0)
239
240 m, err := Create(c)
241 require.NoError(t, err)
242 defer func() {
243 if err := m.Shutdown(); err != nil {
244 t.Fatal(err)
245 }
246 }()
247
248 if m.config.EncryptionEnabled() {
249 t.Fatalf("Expected encryption to be disabled")
250 }
251}
252
253func TestCreate_checkBroadcastQueueMetrics(t *testing.T) {
254 sink := registerInMemorySink(t)

Callers

nothing calls this directly

Calls 8

DefaultLANConfigFunction · 0.85
getBindAddrFunction · 0.85
CreateFunction · 0.85
FatalMethod · 0.80
EncryptionEnabledMethod · 0.80
FatalfMethod · 0.80
ShutdownMethod · 0.65
StringMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…