Ensuring passing context across fission (#2555)

Signed-off-by: Sanket Sudake <sanketsudake@gmail.com>
This commit is contained in:
Sanket Sudake
2022-09-26 16:05:45 +05:30
committed by GitHub
parent a8a81ef5be
commit 3fa0f4bde3
43 changed files with 301 additions and 300 deletions
+5 -1
View File
@@ -17,6 +17,7 @@ limitations under the License.
package plugin
import (
"context"
"encoding/json"
"fmt"
"os"
@@ -57,7 +58,10 @@ func TestFind(t *testing.T) {
}
Prefix = ""
found, err := Find(md.Name)
ctx, cancel := context.WithCancel(context.Background())
defer cancel()
found, err := Find(ctx, md.Name)
os.RemoveAll(testDir)
assert.NoError(t, err)
assert.NotEmpty(t, found)