737
// currently running. The cluster will be torn down if t was the last active test on a poisoned cluster.
738
// The cluster pool's slot reference is replaced as soon as poison is observed.
740
>
if s.t != nil {
741
>
s.t.addTest(t)
742
>
}
743
745
>
if tl, ok := s.Logger.(*testlogger.TestLogger); ok {
746
>
if f := tl.Failure(); f != nil {
747
t.Errorf("cluster poisoned by %s log: %s", f.Level, f.Msg)
748
}
749
}
751
>
if wasLast && s.Poisoned() {
752
if err := s.tearDownTestCluster(); err != nil {
753
t.Logf("Failed to tear down poisoned cluster: %v", err)