good morning!!!!

Skip to content
Snippets Groups Projects
Commit 42f60e72 authored by alex.sharov's avatar alex.sharov
Browse files

fix test

parent 2421ff03
No related branches found
No related tags found
No related merge requests found
......@@ -188,8 +188,8 @@ func TestPeerDisconnect(t *testing.T) {
}
select {
case reason := <-disc:
if reason != DiscQuitting {
t.Errorf("run returned wrong reason: got %v, want %v", reason, DiscQuitting)
if !strings.Contains(reason.Error(), DiscQuitting.Error()) {
t.Errorf("run returned wrong reason: got %v, want %v", reason.Error(), DiscQuitting.Error())
}
case <-time.After(500 * time.Millisecond):
t.Error("peer did not return")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment