Ensure ExtraRuntimeValidation is optional
@@ -167,6 +167,7 @@ func LumiProgramTest(t *testing.T, opts LumiProgramTestOptions) {
planAndDeploy(dir)
// Run additional validation provided by the test options, passing in the
+ if opts.ExtraRuntimeValidation != nil {
checkpointFile := path.Join(dir, ".lumi", "env", testEnvironmentName+".json")
byts, err := ioutil.ReadFile(path.Join(dir, ".lumi", "env", testEnvironmentName+".json"))
if !assert.NoError(t, err, "Expected to be able to read checkpoint file at %v: %v", checkpointFile, err) {
@@ -178,6 +179,7 @@ func LumiProgramTest(t *testing.T, opts LumiProgramTestOptions) {
return
}
opts.ExtraRuntimeValidation(t, checkpoint)
+ }
// If there are any edits, apply them and run a plan and deploy for each one.
for _, edit := range opts.EditDirs {
