Integration tests: Use zaptest.Logger based testing.TB

Thanks to this the logs:
  - are automatically printed if the test fails.
  - are in pretty consistent format.
  - are annotated by 'member' information of the cluster emitting them.

Side changes:
  - Set propert default got DefaultWarningApplyDuration (used to be '0')
  - Name the members based on their 'place' on the list (as opposed to
'random')
This commit is contained in:
Piotr Tabor
2021-03-05 23:27:32 +01:00
parent efb584cc9b
commit 87258efd90
7 changed files with 50 additions and 22 deletions

View File

@@ -230,7 +230,7 @@ func (c *Config) validate() error {
}
if c.Logger == nil {
c.Logger = raftLogger
c.Logger = getLogger()
}
if c.ReadOnlyOption == ReadOnlyLeaseBased && !c.CheckQuorum {