Skip to content

Commit

Permalink
increase timeout for failing patch
Browse files Browse the repository at this point in the history
Signed-off-by: Somtochi Onyekwere <[email protected]>
  • Loading branch information
somtochiama committed Aug 15, 2022
1 parent 9de2992 commit e36c917
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
6 changes: 4 additions & 2 deletions oci/client/build_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,14 @@ package client

import (
"bytes"
"github.com/fluxcd/pkg/untar"
. "github.com/onsi/gomega"
"os"
"path/filepath"
"strings"
"testing"

. "github.com/onsi/gomega"

"github.com/fluxcd/pkg/untar"
)

func TestBuild(t *testing.T) {
Expand Down
3 changes: 1 addition & 2 deletions runtime/patch/patch_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -489,9 +489,8 @@ func TestPatchHelper(t *testing.T) {

readyBefore := conditions.Get(obj, meta.ReadyCondition)
readyAfter := conditions.Get(objAfter, meta.ReadyCondition)

return cmp.Equal(readyBefore, readyAfter)
}, timeout).Should(BeTrue())
}, extendedTimeout).Should(BeTrue())
})

t.Run("should not return an error if there is an unresolvable conflict when force overwrite is enabled", func(t *testing.T) {
Expand Down
3 changes: 2 additions & 1 deletion runtime/patch/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ import (
)

const (
timeout = time.Second * 10
timeout = time.Second * 10
extendedTimeout = time.Second * 15
)

var (
Expand Down

0 comments on commit e36c917

Please sign in to comment.