diff --git a/cmd/summer/parity_contract_test.go b/cmd/summer/parity_contract_test.go index f584a51..74a8375 100644 --- a/cmd/summer/parity_contract_test.go +++ b/cmd/summer/parity_contract_test.go @@ -21,7 +21,7 @@ func TestParityCommandContract(t *testing.T) { } } - spec := filepath.Join("..", "..", "tide", "testdata", "one-route-spec.yaml") + spec := filepath.Join("..", "..", "modules", "tide", "testdata", "one-route-spec.yaml") outDir := t.TempDir() fixture := filepath.Join(outDir, "sample.yaml") const jwt = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhbGljZSJ9.signaturehere123456" diff --git a/cmd/summer/parity_test.go b/cmd/summer/parity_test.go index 9d5231c..10485e5 100644 --- a/cmd/summer/parity_test.go +++ b/cmd/summer/parity_test.go @@ -20,7 +20,7 @@ func TestParityCommands(t *testing.T) { } } - spec := filepath.Join("..", "..", "tide", "testdata", "one-route-spec.yaml") + spec := filepath.Join("..", "..", "modules", "tide", "testdata", "one-route-spec.yaml") outDir := t.TempDir() fixture := filepath.Join(outDir, "sample.yaml") diff --git a/modules/cabana/openapi_conformance_test.go b/modules/cabana/openapi_conformance_test.go index 9650ce8..c450533 100644 --- a/modules/cabana/openapi_conformance_test.go +++ b/modules/cabana/openapi_conformance_test.go @@ -202,7 +202,7 @@ func conformSpec(t *testing.T) conformSpecDoc { if !ok { t.Fatal("caller") } - raw, err := os.ReadFile(filepath.Join(filepath.Dir(file), "..", "admin", "openapi", "admin.json")) + raw, err := os.ReadFile(filepath.Join(filepath.Dir(file), "..", "..", "admin", "openapi", "admin.json")) if err != nil { t.Fatal(err) } diff --git a/modules/cabana/phase09_contract_test.go b/modules/cabana/phase09_contract_test.go index 4eab561..87c8617 100644 --- a/modules/cabana/phase09_contract_test.go +++ b/modules/cabana/phase09_contract_test.go @@ -17,7 +17,7 @@ func TestPhase09ContractInventory(t *testing.T) { if !ok { t.Fatal("caller") } - specPath := filepath.Clean(filepath.Join(filepath.Dir(file), "..", "admin", "openapi", "admin.json")) + specPath := filepath.Clean(filepath.Join(filepath.Dir(file), "..", "..", "admin", "openapi", "admin.json")) raw, err := os.ReadFile(specPath) if err != nil { t.Fatalf("read %s: %v", specPath, err) diff --git a/modules/phrasebook/phase10_test.go b/modules/phrasebook/phase10_test.go index 19681b9..8988308 100644 --- a/modules/phrasebook/phase10_test.go +++ b/modules/phrasebook/phase10_test.go @@ -154,7 +154,7 @@ func TestPhase10SPAKeysResolve(t *testing.T) { if !ok { t.Fatal("caller") } - root := filepath.Join(filepath.Dir(file), "..", "admin", "src") + root := filepath.Join(filepath.Dir(file), "..", "..", "admin", "src") keys := map[string]bool{} err := filepath.WalkDir(root, func(path string, d fs.DirEntry, err error) error { if err != nil {