diff --git a/validation/validation_test.go b/validation/validation_test.go
index <HASH>..<HASH> 100644
--- a/validation/validation_test.go
+++ b/validation/validation_test.go
@@ -18,7 +18,10 @@ var (
 )
 
 func init() {
-	runtime = os.Getenv("RUNTIME")
+	runtimeInEnv := os.Getenv("RUNTIME")
+	if runtimeInEnv != "" {
+		runtime = runtimeInEnv
+	}
 }
 
 func runtimeValidate(runtime string, g *generate.Generator) error {
use default runtime to test when the runtime env is not set