internal/testfiles: adjust test so all modules are after 1.21

Updates golang/go#68658

Change-Id: Ifcc6c4b2cc8fb15ce903176d2817d796317a97be
Reviewed-on: https://go-review.googlesource.com/c/tools/+/604955
Reviewed-by: Michael Matloob <matloob@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
diff --git a/internal/testfiles/testdata/versions/go.mod.test b/internal/testfiles/testdata/versions/go.mod.test
index 55f69e1..0dfc6f1 100644
--- a/internal/testfiles/testdata/versions/go.mod.test
+++ b/internal/testfiles/testdata/versions/go.mod.test
@@ -2,4 +2,4 @@
 
 module golang.org/fake/versions
 
-go 1.21
+go 1.22
diff --git a/internal/testfiles/testdata/versions/mod.go b/internal/testfiles/testdata/versions/mod.go
index 13117fd..bd0bc18 100644
--- a/internal/testfiles/testdata/versions/mod.go
+++ b/internal/testfiles/testdata/versions/mod.go
@@ -1,3 +1,3 @@
-// The file will be go1.21 from the go.mod.
+// The file will be go1.22 from the go.mod.
 
-package versions // want "mod.go@go1.21"
+package versions // want "mod.go@go1.22"
diff --git a/internal/testfiles/testdata/versions/post.go b/internal/testfiles/testdata/versions/post.go
index 8c1afde..c7eef6e 100644
--- a/internal/testfiles/testdata/versions/post.go
+++ b/internal/testfiles/testdata/versions/post.go
@@ -1,3 +1,3 @@
-//go:build go1.22
+//go:build go1.23
 
-package versions // want "post.go@go1.22"
+package versions // want "post.go@go1.23"
diff --git a/internal/testfiles/testdata/versions/pre.go b/internal/testfiles/testdata/versions/pre.go
index 2b5ca67..809f8b7 100644
--- a/internal/testfiles/testdata/versions/pre.go
+++ b/internal/testfiles/testdata/versions/pre.go
@@ -1,3 +1,3 @@
-//go:build go1.20
+//go:build go1.21
 
-package versions // want "pre.go@go1.20"
+package versions // want "pre.go@go1.21"
diff --git a/internal/testfiles/testdata/versions/sub.test/sub.go.test b/internal/testfiles/testdata/versions/sub.test/sub.go.test
index 3b2721b..f573fdd 100644
--- a/internal/testfiles/testdata/versions/sub.test/sub.go.test
+++ b/internal/testfiles/testdata/versions/sub.test/sub.go.test
@@ -1 +1 @@
-package sub // want "sub.go@go1.21"
+package sub // want "sub.go@go1.22"
diff --git a/internal/testfiles/testfiles_test.go b/internal/testfiles/testfiles_test.go
index d9fad82..7893446 100644
--- a/internal/testfiles/testfiles_test.go
+++ b/internal/testfiles/testfiles_test.go
@@ -19,8 +19,7 @@
 )
 
 func TestTestDir(t *testing.T) {
-	t.Skip("Disabled for golang.org/cl/603895. Fix and re-enable.")
-	testenv.NeedsGo1Point(t, 22)
+	testenv.NeedsGo1Point(t, 23)
 
 	// Files are initially {go.mod.test,sub.test/sub.go.test}.
 	fs := os.DirFS(filepath.Join(analysistest.TestData(), "versions"))