Commit 228b439b authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent ac802560
...@@ -100,8 +100,8 @@ func testWeakRef(t *testing.T) { ...@@ -100,8 +100,8 @@ func testWeakRef(t *testing.T) {
select { select {
case <-time.After(10 * time.Millisecond): case <-time.After(10 * time.Millisecond):
// ok // ok
case <-wrelease: case state := <-wrelease:
t.Fatal("unexpected release event") t.Fatalf("unexpected release event: state=%v", state)
} }
} }
GCfin := func(stateOK weakRefState) { GCfin := func(stateOK weakRefState) {
...@@ -115,7 +115,7 @@ func testWeakRef(t *testing.T) { ...@@ -115,7 +115,7 @@ func testWeakRef(t *testing.T) {
case state = <-wrelease: case state = <-wrelease:
// ok // ok
case <-time.After(1 * time.Second): case <-time.After(1 * time.Second):
t.Fatal("no release event") t.Fatalf("no release event (w.state=%v)", w.state)
} }
if state != stateOK { if state != stateOK {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment