lib/sync: Log everything...

This commit is contained in:
Audrius Butkevicius
2016-11-03 21:33:33 +00:00
parent e408f1061a
commit 3418497f3d
3 changed files with 99 additions and 43 deletions

View File

@@ -162,7 +162,7 @@ func TestRWMutex(t *testing.T) {
if len(messages) != 2 {
t.Errorf("Unexpected message count")
}
if !strings.Contains(messages[1], "RUnlockers while locking: sync") || !strings.Contains(messages[1], "sync_test.go:") {
if !strings.Contains(messages[1], "RUnlockers while locking:\nat sync") || !strings.Contains(messages[1], "sync_test.go:") {
t.Error("Unexpected message")
}