Skip to content

Commit

Permalink
Remove .only in CN test suite + fix test (#2369)
Browse files Browse the repository at this point in the history
* remove .only in CN test suite

* fix deprecated route test
  • Loading branch information
vicky-g committed Jan 22, 2022
1 parent c79a1ed commit a8fbc67
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions creator-node/test/ensureStorageMiddleware.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,15 +88,15 @@ describe('test ensureStorageMiddleware', () => {
assert(errorObj.error.state === 'NODE_REACHED_CAPACITY')
})

it('fails with bad request when storage capacity is reached (/track_content)', async () => {
it('fails with bad request when storage capacity is reached (/track_content_async)', async () => {
await monitoringQueueMock.setRedisValue(storagePathUsedRedisKey, 100)
const storagePathUsed = await monitoringQueueMock.getRedisValue(storagePathUsedRedisKey)
assert(storagePathUsed === '100')

const testAudioFilePath = path.resolve(__dirname, 'testTrack.mp3')
const file = fs.readFileSync(testAudioFilePath)
const resp = await request(app)
.post('/track_content')
.post('/track_content_async')
.attach('file', file, { filename: 'STARBOY.mp3' })
.set('Content-Type', 'multipart/form-data')
.set('X-Session-ID', session.sessionToken)
Expand Down
2 changes: 1 addition & 1 deletion creator-node/test/nodesync.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -692,7 +692,7 @@ describe('test nodesync', async function () {
})
})

describe.only('Test processSync function', async function () {
describe('Test processSync function', async function () {
let serviceRegistryMock

const TEST_ENDPOINT = 'http://test-cn.co'
Expand Down

0 comments on commit a8fbc67

Please sign in to comment.