1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-09-09 17:22:21 +08:00

respect don contexteone

This commit is contained in:
Juan Batiz-Benet
2014-12-24 03:24:28 -08:00
parent f8c523fc3b
commit ccf6f79aa0
5 changed files with 49 additions and 24 deletions

View File

@ -73,7 +73,7 @@ func TestGetFailures(t *testing.T) {
})
// This one should fail with NotFound
ctx2, _ := context.WithTimeout(context.Background(), time.Second)
ctx2, _ := context.WithTimeout(context.Background(), 3*time.Second)
_, err = d.GetValue(ctx2, u.Key("test"))
if err != nil {
if err != routing.ErrNotFound {