Skip to content
This repository has been archived by the owner on Dec 15, 2021. It is now read-only.

Commit

Permalink
Allow underscore in runtimes. Remove flaky test (#951)
Browse files Browse the repository at this point in the history
  • Loading branch information
andresmgot authored Nov 7, 2018
1 parent bf2871f commit f7736a4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/langruntime/langruntime.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ func (l *Langruntimes) getVersionFromRuntime(runtime string) string {

// GetRuntimeInfo returns all the info regarding a runtime
func (l *Langruntimes) GetRuntimeInfo(runtime string) (RuntimeInfo, error) {
runtimeID := regexp.MustCompile("^[a-zA-Z]+").FindString(runtime)
runtimeID := regexp.MustCompile("^[a-zA-Z_-]+").FindString(runtime)
for _, runtimeInf := range l.AvailableRuntimes {
if runtimeInf.ID == runtimeID {
return runtimeInf, nil
Expand Down
1 change: 0 additions & 1 deletion tests/integration-tests-cronjob.bats
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ load ../script/libtest
verify_cronjob_trigger get-python '*/60 * * * *' '"GET / HTTP/1.1" 200 11 "" "curl/7.56.1"'
delete_cronjob_trigger get-python
verify_clean_object cronjobtrigger get-python
verify_clean_object cronjob get-python
}

@test "Test no-errors" {
Expand Down

0 comments on commit f7736a4

Please sign in to comment.