Skip to content

Commit

Permalink
test: sleep after cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: Matej Vasek <[email protected]>
  • Loading branch information
matejvasek committed Oct 9, 2023
1 parent a7c1558 commit 012e848
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/oncluster/scenario_runtime_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"path/filepath"
"strings"
"testing"
"time"

"k8s.io/apimachinery/pkg/util/rand"
common "knative.dev/func/test/common"
Expand Down Expand Up @@ -79,7 +80,10 @@ func runtimeImpl(t *testing.T, lang string, builder string) {
"--builder", builder,
"--git-url", remoteRepo.ClusterCloneURL)

defer knFunc.Exec("delete", "-p", funcPath)
t.Cleanup(func() {
knFunc.Exec("delete", "-p", funcPath)
time.Sleep(time.Second * 10)
})

// -- Assertions --
result := knFunc.Exec("invoke", "-p", funcPath)
Expand Down

0 comments on commit 012e848

Please sign in to comment.