Skip to content

Commit

Permalink
chore(apps/legacy-api): skip flaky tests (#1470)
Browse files Browse the repository at this point in the history
  • Loading branch information
eli-lim authored May 23, 2022
1 parent fb74c0a commit d937bb6
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,8 @@ it('/v1/listyieldfarming', async () => {
})
})

// TODO(eli-lim): unskip tests when
// https://github.com/JellyfishSDK/whale/issues/981 is resolved
describe('getsubgraphswaps', () => {
it('/v1/getsubgraphswaps', async () => {
const res = await apiTesting.app.inject({
Expand Down Expand Up @@ -295,7 +297,7 @@ describe('getsubgraphswaps', () => {
expect(response.data.swaps.length).toStrictEqual(0)
})

it('/v1/getsubgraphswaps?limit=101 - limited to 100', async () => {
it.skip('/v1/getsubgraphswaps?limit=101 - limited to 100', async () => {
const res = await apiTesting.app.inject({
method: 'GET',
url: '/v1/getsubgraphswaps?limit=101'
Expand All @@ -304,7 +306,7 @@ describe('getsubgraphswaps', () => {
expect(response.data.swaps.length).toStrictEqual(100)
})

it('/v1/getsubgraphswaps?limit=X&next=Y - should paginate', async () => {
it.skip('/v1/getsubgraphswaps?limit=X&next=Y - should paginate', async () => {
const [swap1And2, swap1]: any = await Promise.all([
apiTesting.app.inject({
method: 'GET',
Expand Down Expand Up @@ -355,7 +357,7 @@ describe('getsubgraphswaps - relying on caching', () => {
await mockCache()
})

it('/v1/getsubgraphswaps - should return 100 relatively quickly', async () => {
it.skip('/v1/getsubgraphswaps - should return 100 relatively quickly', async () => {
// When getsubgraphswaps query is made
const msStart = Date.now()
const res = await apiTesting.app.inject({
Expand Down

0 comments on commit d937bb6

Please sign in to comment.