Skip to content

Commit

Permalink
fixed order_test assertion against output
Browse files Browse the repository at this point in the history
  • Loading branch information
cppforlife committed Sep 12, 2019
1 parent 4d751de commit d0f52f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/e2e/order_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ Changes
Namespace Name Kind Conds. Age Op Wait to Rs Ri $
kapp-test app-config2 ConfigMap - - create reconcile - - $
~ import-etcd-into-db ConfigMap - <replaced> delete delete ok - $
~ import-etcd-into-db ConfigMap - <replaced> delete delete ok - $
Op: 1 create, 1 delete, 0 update, 0 noop
Wait to: 1 reconcile, 1 delete, 0 noop
Expand Down Expand Up @@ -217,7 +217,7 @@ func replaceTs(result string) string {
}

func replaceAgeStr(result string) string {
return regexp.MustCompile("\\d(s|m|h)").ReplaceAllString(result, "<replaced>")
return regexp.MustCompile("\\d+(s|m|h)").ReplaceAllString(result, "<replaced>")
}

func replaceSpaces(result string) string {
Expand Down

0 comments on commit d0f52f0

Please sign in to comment.