diff --git a/fuse/ipns/ipns_test.go b/fuse/ipns/ipns_test.go index 2d02199b9..25b3bf9f5 100644 --- a/fuse/ipns/ipns_test.go +++ b/fuse/ipns/ipns_test.go @@ -239,17 +239,17 @@ func TestFastRepublish(t *testing.T) { } // constantly keep writing to the file - go func() { + go func(timeout time.Duration) { for { select { case <-closed: return - case <-time.After(shortRepublishTimeout * 8 / 10): + case <-time.After(timeout * 8 / 10): writeFileData(t, dataB, fname) } } - }() + }(shortRepublishTimeout) hasPublished := func() bool { res, err := node.Namesys.Resolve(pubkeyHash)