Skip to content

Commit 2cc583c

Browse files
authored
Merge pull request #373 from neutron-org/fix/remove-map-returning-queries
remove non-determenicic queries (tmp)
2 parents a90cf75 + c798da6 commit 2cc583c

File tree

1 file changed

+23
-21
lines changed

1 file changed

+23
-21
lines changed

src/testcases/run_in_band/slinky.test.ts

+23-21
Original file line numberDiff line numberDiff line change
@@ -163,18 +163,19 @@ describe('Neutron / Slinky', () => {
163163
});
164164

165165
describe('grpc oracle', () => {
166-
test('query prices', async () => {
167-
const res: GetPricesResponse = await neutronClient.queryContractSmart(
168-
oracleContract,
169-
{
170-
get_prices: {
171-
currency_pair_ids: ['AAVE/USD'],
172-
},
173-
},
174-
);
175-
expect(res.prices).toHaveLength(1);
176-
expect(+res.prices[0].price.price).toBeGreaterThan(0);
177-
});
166+
// this query is restricted currently
167+
// test('query prices', async () => {
168+
// const res: GetPricesResponse = await neutronClient.queryContractSmart(
169+
// oracleContract,
170+
// {
171+
// get_prices: {
172+
// currency_pair_ids: ['AAVE/USD'],
173+
// },
174+
// },
175+
// );
176+
// expect(res.prices).toHaveLength(1);
177+
// expect(+res.prices[0].price.price).toBeGreaterThan(0);
178+
// });
178179

179180
test('query price', async () => {
180181
const res: GetPriceResponse = await neutronClient.queryContractSmart(
@@ -226,15 +227,16 @@ describe('Neutron / Slinky', () => {
226227
expect(res.market).toBeDefined();
227228
});
228229

229-
test('query market map', async () => {
230-
const res = await neutronClient.queryContractSmart(marketmapContract, {
231-
market_map: {},
232-
});
233-
expect(res).toBeDefined();
234-
expect(res.chain_id).toBeDefined();
235-
expect(res.market_map).toBeDefined();
236-
expect(res.last_updated).toBeDefined();
237-
});
230+
// this query is restricted atm
231+
// test('query market map', async () => {
232+
// const res = await neutronClient.queryContractSmart(marketmapContract, {
233+
// market_map: {},
234+
// });
235+
// expect(res).toBeDefined();
236+
// expect(res.chain_id).toBeDefined();
237+
// expect(res.market_map).toBeDefined();
238+
// expect(res.last_updated).toBeDefined();
239+
// });
238240

239241
test('query params', async () => {
240242
const res = await neutronClient.queryContractSmart(marketmapContract, {

0 commit comments

Comments
 (0)