fix: 2026-06-04 audit pass — README, USB pack, multi-area fixes
WS ticket dashboard auth, builder universal signing/size limits/fusion obfuscation/dropper bundles, Path Tracer WireGuard topology, SessionGate degraded mode and download timeouts, server bootstrap (data dir, cloudflared dedupe, config port precedence), agent mesh/miner/spread fixes. README refreshed; usb bundle repacked; PROBLEMS.md audit log updated.
This commit is contained in:
@@ -199,12 +199,18 @@ func TestPublishFusionDeliverable(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestPublishFusionDeliverableNoRoot(t *testing.T) {
|
||||
h := &Handler{projectRoot: ""}
|
||||
dir, err := h.publishFusionDeliverable("x", nil, fusionReadmeInfo{})
|
||||
dataDir := t.TempDir()
|
||||
h := &Handler{projectRoot: "", dataDir: dataDir}
|
||||
src := filepath.Join(t.TempDir(), "runner.exe")
|
||||
if err := os.WriteFile(src, []byte("bin"), 0644); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
dir, err := h.publishFusionDeliverable("x", map[string]string{"runner.exe": src}, fusionReadmeInfo{Title: "x"})
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if dir != "" {
|
||||
t.Fatalf("expected empty dir when no project root, got %q", dir)
|
||||
want := filepath.Join(dataDir, FusionDeliverablesDir, "x")
|
||||
if dir != want {
|
||||
t.Fatalf("expected dataDir fallback %q, got %q", want, dir)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user