Skip to content

Commit 2310bd9

Browse files
committed
Simplify test.
1 parent b4db864 commit 2310bd9

File tree

2 files changed

+6
-34
lines changed

2 files changed

+6
-34
lines changed

go/ql/integration-tests/all-platforms/go/resolve-build-environment/newer-go-needed/diagnostics.expected

Lines changed: 0 additions & 31 deletions
This file was deleted.
Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1-
def test(codeql, go, check_build_environment):
2-
check_build_environment.env = {"GOTOOLCHAIN": "go1.21.0"}
3-
codeql.database.create(source_root="src")
1+
import os
2+
3+
4+
def test(check_build_environment, go):
5+
# the check for resolve build-environment runs after the test and will pick up this environment variable
6+
os.environ["GOTOOLCHAIN"] = "go1.21.0"

0 commit comments

Comments
 (0)