- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for SetLogTB (0.06 sec)
-
internal/logger/target/testlogger/testlogger.go
logger.AddSystemTarget(context.Background(), T) } type testLogger struct { current atomic.Pointer[testing.TB] action atomic.Int32 } // SetLogTB will set the logger to output to tb. // Call the returned function to disable logging. func (t *testLogger) SetLogTB(tb testing.TB) func() { return t.setTB(tb, logMessage) } // SetErrorTB will set the logger to output to tb.Error.
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 4K bytes - Viewed (0) -
internal/grid/grid_test.go
"os" "runtime" "strconv" "strings" "sync" "testing" "time" "github.com/minio/minio/internal/logger/target/testlogger" ) func TestSingleRoundtrip(t *testing.T) { defer testlogger.T.SetLogTB(t)() errFatal := func(err error) { t.Helper() if err != nil { t.Fatal(err) } } grid, err := SetupTestGrid(2) errFatal(err) remoteHost := grid.Hosts[1] local := grid.Managers[0]
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 36.1K bytes - Viewed (0)