mirror of
https://github.com/octoleo/syncthing.git
synced 2024-12-22 19:08:58 +00:00
lib/sync: Cleanly fail instead of panic in tests (#6088)
This commit is contained in:
parent
b8907b49f9
commit
1a06ab68eb
@ -152,8 +152,7 @@ func TestRWMutex(t *testing.T) {
|
|||||||
|
|
||||||
if len(messages) != 2 {
|
if len(messages) != 2 {
|
||||||
t.Errorf("Unexpected message count")
|
t.Errorf("Unexpected message count")
|
||||||
}
|
} else if !strings.Contains(messages[1], "RUnlockers while locking:\nat 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")
|
t.Error("Unexpected message")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user