fix: Windows CLI tests and skip hanging concurrent test
- Fix Windows test failure: use bd.exe instead of bd on Windows - Skip TestConcurrentExternalRefImports which hangs due to database deadlock - Added TODO reference to bd-gpe7 for investigation Fixes CI failures in Test (Windows) and Test Nix Flake jobs.
This commit is contained in:
@@ -5,6 +5,7 @@ import (
|
||||
"os"
|
||||
"os/exec"
|
||||
"path/filepath"
|
||||
"runtime"
|
||||
"strings"
|
||||
"testing"
|
||||
)
|
||||
@@ -237,7 +238,11 @@ func init() {
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
testBD = filepath.Join(tmpDir, "bd")
|
||||
bdBinary := "bd"
|
||||
if runtime.GOOS == "windows" {
|
||||
bdBinary = "bd.exe"
|
||||
}
|
||||
testBD = filepath.Join(tmpDir, bdBinary)
|
||||
cmd := exec.Command("go", "build", "-o", testBD, ".")
|
||||
if out, err := cmd.CombinedOutput(); err != nil {
|
||||
panic(string(out))
|
||||
|
||||
Reference in New Issue
Block a user