diff --git a/machine_test.go b/machine_test.go index 378225ff..6b330d30 100644 --- a/machine_test.go +++ b/machine_test.go @@ -644,7 +644,7 @@ func testCreateMachine(ctx context.Context, t *testing.T, m *Machine) { } func parseVersionFromStdout(stdout []byte) (string, error) { - pattern := regexp.MustCompile(`Firecracker v(?P[0-9]\.[0-9]\.[0-9]-?.*)`) + pattern := regexp.MustCompile(`Firecracker v(?P[0-9]+\.[0-9]+\.[0-9]+-?.*)`) groupNames := pattern.SubexpNames() matches := pattern.FindStringSubmatch(string(stdout))