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:
@ -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 {
|
||||
|
Reference in New Issue
Block a user