summaryrefslogtreecommitdiffhomepage
path: root/test/unit/check/go.py
diff options
context:
space:
mode:
authorMax Romanov <max.romanov@nginx.com>2021-05-25 18:00:59 +0300
committerMax Romanov <max.romanov@nginx.com>2021-05-25 18:00:59 +0300
commit155e22da05f01eb51b9dc082e9c8e8bff9b5ec8d (patch)
tree67006792d790c15c1d1048095fb72cba673d9820 /test/unit/check/go.py
parent2fe76afaa69a0a992fd376c03c345f1ceb04b80e (diff)
downloadunit-155e22da05f01eb51b9dc082e9c8e8bff9b5ec8d.tar.gz
unit-155e22da05f01eb51b9dc082e9c8e8bff9b5ec8d.tar.bz2
Go: fixing tests for Go 1.16.
In Go 1.16, the module-aware mode is enabled by default; to fall back to previous behavior, the GO111MODULE environment variable should be set to 'auto'. Details: https://golang.org/doc/go1.16
Diffstat (limited to '')
-rw-r--r--test/unit/check/go.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/unit/check/go.py b/test/unit/check/go.py
index 35b0c2d5..309091c0 100644
--- a/test/unit/check/go.py
+++ b/test/unit/check/go.py
@@ -8,6 +8,7 @@ def check_go(current_dir, temp_dir, test_dir):
env = os.environ.copy()
env['GOPATH'] = current_dir + '/build/go'
+ env['GO111MODULE'] = 'auto'
try:
process = subprocess.Popen(