Skip to content

Commit

Permalink
callback test: increase timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
chfritz committed Mar 15, 2024
1 parent 196c961 commit 6e22a46
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/callback.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,17 +47,17 @@ common.describe('callback run from another thread spawned from GstPipeline', asy
return await new Promise((resolve, reject) => {
const pipeline = new Gst.Pipeline()
const webrtcbin = Gst.ElementFactory.make('webrtcbin')

if (!pipeline || !webrtcbin) {
reject('Could not create all elements.')
}
pipeline.add(webrtcbin)

pipeline.setState(Gst.State.PLAYING)

const timeout = setTimeout(() => {
reject()
}, 500)
}, 1000)
const s = Gst.Structure.newEmpty('structure')
const p = Gst.Promise.newWithChangeFunc(() => {
resolve()
Expand Down

0 comments on commit 6e22a46

Please sign in to comment.