(t *testing.T)
| 320 | } |
| 321 | |
| 322 | func TestCreate_invalidLoggerSettings(t *testing.T) { |
| 323 | c := DefaultLANConfig() |
| 324 | c.BindAddr = getBindAddr().String() |
| 325 | c.Logger = log.New(io.Discard, "", log.LstdFlags) |
| 326 | c.LogOutput = io.Discard |
| 327 | |
| 328 | m, err := Create(c) |
| 329 | if err == nil { |
| 330 | require.NoError(t, m.Shutdown()) |
| 331 | t.Fatal("Memberlist should not allow both LogOutput and Logger to be set, but it did not raise an error") |
| 332 | } |
| 333 | } |
| 334 | |
| 335 | func TestCreate(t *testing.T) { |
| 336 | c := testConfig(t) |
nothing calls this directly
no test coverage detected
searching dependent graphs…