Merge pull request #55 from filecoin-project/fix/bug

use the role map, luke!
This commit is contained in:
vyzo 2020-06-24 14:07:21 +03:00 committed by GitHub
commit 2bfbc6a314
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,7 +18,7 @@ func main() {
func doRun(roles map[string]func(*TestEnvironment) error) run.InitializedTestCaseFn {
return func(runenv *runtime.RunEnv, initCtx *run.InitContext) error {
role := runenv.StringParam("role")
proc, ok := baselineRoles[role]
proc, ok := roles[role]
if ok {
return proc(&TestEnvironment{RunEnv: runenv, InitContext: initCtx})
}