mirror of
https://github.com/rancher/os.git
synced 2025-09-23 11:30:49 +00:00
Bump a few libs to latest tagged versions
This commit is contained in:
15
vendor/github.com/Sirupsen/logrus/logrus_test.go
generated
vendored
15
vendor/github.com/Sirupsen/logrus/logrus_test.go
generated
vendored
@@ -299,3 +299,18 @@ func TestGetSetLevelRace(t *testing.T) {
|
||||
}
|
||||
wg.Wait()
|
||||
}
|
||||
|
||||
func TestLoggingRace(t *testing.T) {
|
||||
logger := New()
|
||||
|
||||
var wg sync.WaitGroup
|
||||
wg.Add(100)
|
||||
|
||||
for i := 0; i < 100; i++ {
|
||||
go func() {
|
||||
logger.Info("info")
|
||||
wg.Done()
|
||||
}()
|
||||
}
|
||||
wg.Wait()
|
||||
}
|
||||
|
Reference in New Issue
Block a user