v0.1.11 harden logging lifecycle, sanitization, and formatter edge cases
Test / test (push) Canceled after 0s
Test / fuzz (./compat, FuzzParseFormat) (push) Canceled after 0s
Test / fuzz (./formatter, FuzzFormatJSON) (push) Canceled after 0s
Test / fuzz (./formatter, FuzzFormatTextPolicy) (push) Canceled after 0s
Test / fuzz (./sanitizer, FuzzSanitize) (push) Canceled after 0s
Test / fuzz (./sanitizer, FuzzSerializerJSON) (push) Canceled after 0s
Test / test (push) Canceled after 0s
Test / fuzz (./compat, FuzzParseFormat) (push) Canceled after 0s
Test / fuzz (./formatter, FuzzFormatJSON) (push) Canceled after 0s
Test / fuzz (./formatter, FuzzFormatTextPolicy) (push) Canceled after 0s
Test / fuzz (./sanitizer, FuzzSanitize) (push) Canceled after 0s
Test / fuzz (./sanitizer, FuzzSerializerJSON) (push) Canceled after 0s
This commit is contained in:
1 parent
79a81db3ca
commit
2417e51da1
46 files changed
+1846
-1289
No files matched your search
+1
-3
@@ -96,7 +96,6 @@ func TestConcurrentOperations(t *testing.T) {
|
||||
for i := range 3 {
|
||||
// Non-fatal only: Fatal outside the test goroutine is undefined behavior
|
||||
noErr(t, logger.ApplyConfigString(fmt.Sprintf("trace_depth=%d", i)), "ApplyConfigString")
|
||||
time.Sleep(50 * time.Millisecond)
|
||||
}
|
||||
}()
|
||||
|
||||
@@ -104,9 +103,8 @@ func TestConcurrentOperations(t *testing.T) {
|
||||
go func() {
|
||||
defer wg.Done()
|
||||
for range 5 {
|
||||
// Timeout must exceed worst-case contention on flushMutex under load
|
||||
// Allow the fixed workload to complete under race instrumentation
|
||||
noErr(t, logger.Flush(2*time.Second), "concurrent Flush")
|
||||
time.Sleep(30 * time.Millisecond)
|
||||
}
|
||||
}()
|
||||
|
||||
|
||||
Reference in new issue
Block a user