Skip to content

Commit ddc4dbe

Browse files
committed
fix indexer test
1 parent 05276fb commit ddc4dbe

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

packages/indexer-agent/src/__tests__/indexer.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ const setup = async () => {
139139
'http://test-admin-endpoint.xyz',
140140
'https://test-query-endpoint.xyz',
141141
'https://test-status-endpoint.xyz',
142+
'https://test-ipfs-endpoint.xyz',
142143
)
143144

144145
const yamlObj = loadTestYamlConfig()

packages/indexer-cli/src/__tests__/util.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ export const setup = async (multiNetworksEnabled: boolean) => {
8787
'http://test-admin-endpoint.xyz',
8888
'https://test-query-endpoint.xyz',
8989
statusEndpoint,
90+
'https://test-ipfs-endpoint.xyz',
9091
)
9192

9293
const network = await Network.create(

packages/indexer-common/src/__tests__/ipfs.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,20 +96,20 @@ describe(SubgraphManifestResolver, () => {
9696
return res.send(err.message)
9797
}
9898

99-
console.log(`got cid ${cid}`)
99+
// console.log(`got cid ${cid}`)
100100

101101
// Example: Respond with different data based on the CID
102102
if (manifestMap.has(cid)) {
103103
res.send(manifestMap.get(cid))
104104
} else {
105-
console.log(`CID not found: ${cid}`)
105+
// console.log(`CID not found: ${cid}`)
106106
res.status(404).send('Not Found')
107107
}
108108
})
109109

110110
// Handler for all other routes
111111
app.use((req: Request, res: Response, next) => {
112-
console.log(`404: ${req.url}, ${req.method}`)
112+
// console.log(`404: ${req.url}, ${req.method}`)
113113
res.status(404).send('Not Found')
114114
next()
115115
})

0 commit comments

Comments
 (0)