浏览代码

Fix unit test

zfliex924 3 年之前
父节点
当前提交
17540926cd
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      accounts/abi/bind/bind_test.go

+ 1 - 1
accounts/abi/bind/bind_test.go

@@ -1851,7 +1851,7 @@ func TestGolangBindings(t *testing.T) {
 	if out, err := replacer.CombinedOutput(); err != nil {
 		t.Fatalf("failed to replace binding test dependency to current source tree: %v\n%s", err, out)
 	}
-	tidier := exec.Command(gocmd, "mod", "tidy")
+	tidier := exec.Command(gocmd, "mod", "tidy", "-compat=1.17")
 	tidier.Dir = pkg
 	if out, err := tidier.CombinedOutput(); err != nil {
 		t.Fatalf("failed to tidy Go module file: %v\n%s", err, out)