mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-09-19 09:40:12 +00:00
test(agentcompat): use native validation paths
Co-authored-by: naiba/CloudCode <hi+cloudcode@nai.ba>
This commit is contained in:
@@ -164,7 +164,10 @@ func validMetadata(t *testing.T, resultsDir, scenarioName string) Metadata {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatalf("profile: %v", err)
|
t.Fatalf("profile: %v", err)
|
||||||
}
|
}
|
||||||
paths, err := contract.NewPaths("/src/nezha", "/src/agent", resultsDir)
|
sourceRoot := t.TempDir()
|
||||||
|
nezhaSource := filepath.Join(sourceRoot, "nezha-source")
|
||||||
|
agentSource := filepath.Join(sourceRoot, "agent-source")
|
||||||
|
paths, err := contract.NewPaths(nezhaSource, agentSource, resultsDir)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatalf("paths: %v", err)
|
t.Fatalf("paths: %v", err)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user