refactor: move e2e tests into src/e2e directory

This commit is contained in:
2026-04-02 02:23:00 +02:00
parent 6821112c8f
commit 252503a572
6 changed files with 7 additions and 7 deletions

View File

@@ -1,4 +1,4 @@
package main package e2e_test
import ( import (
"encoding/json" "encoding/json"

View File

@@ -1,4 +1,4 @@
package main package e2e_test
import ( import (
"slices" "slices"

View File

@@ -1,4 +1,4 @@
package main package e2e_test
import ( import (
"testing" "testing"

View File

@@ -1,4 +1,4 @@
package main package e2e_test
import ( import (
"os" "os"

View File

@@ -1,4 +1,4 @@
package main package e2e_test
import ( import (
"testing" "testing"

View File

@@ -1,4 +1,4 @@
package main package e2e_test
import ( import (
"encoding/json" "encoding/json"
@@ -43,7 +43,7 @@ func (n NodeResponse) HasRelation(relType, targetID string) bool {
var axBinary string var axBinary string
func TestMain(m *testing.M) { func TestMain(m *testing.M) {
if err := exec.Command("go", "build", "-o", "ax", ".").Run(); err != nil { if err := exec.Command("go", "build", "-o", "ax", "..").Run(); err != nil {
fmt.Fprintln(os.Stderr, "build failed:", err) fmt.Fprintln(os.Stderr, "build failed:", err)
os.Exit(1) os.Exit(1)
} }