Skip to content

Commit

Permalink
Increase test timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
JulienVig committed Jul 11, 2024
1 parent c8bb46f commit 7741d84
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ describe('text preprocessing', function () {
it('can tokenize text', async () => {
const { tokens } = await tokenize.apply(Promise.resolve(text), initMockTask()) as { tokens: number[]}
expect(tokens).to.be.deep.equal(expectedTokens)
})
}).timeout(4000)

it('can truncate inputs when tokenizing', async () => {
const truncationTask = initMockTask()
Expand All @@ -42,7 +42,7 @@ describe('text preprocessing', function () {
const expectedLength = truncationTask.trainingInformation.maxSequenceLength + 1 // + 1 because tokenization includes an extra token label for next label prediction
expect(tokens.length).to.be.equal(expectedLength)
expect(tokens).to.be.deep.equal(expectedTokens.slice(0, expectedLength))
})
}).timeout(4000)

it('can left pad tokens', async () => {
// Create a task where output token sequence should all have length 20
Expand Down

0 comments on commit 7741d84

Please sign in to comment.