Facebook docker running infinitely [HELP WANTED]
See original GitHub issueHi!
I’m running Facebook tests with a single test case, but it is still running after an hour with no output. So I kill the process and don’t get any results.
- Is such behaviour normal? What is your average tests duration? MacBook Pro 2015, i7
- How the botium know that the system is running and it can start testing? Is it possible that botium will start testing the system before it’s ready?
- Is there any timeout for this?
I tried to put process.exit call into Promise handlers after the fluent, but since the process doesn’t look like this code isn’t even executed.
.then(() => {
console.log('READY');
process.exit(0);
})
.catch((err) => {
console.log('ERROR: ', err);
process.exit(1);
});
Here is the full code:
const {
BotDriver,
Capabilities,
Source,
} = require('botium-core');
function assert (expected, actual) {
if (actual.indexOf(expected) < 0) {
console.log(`ERROR: Expected <${expected}>, got <${actual}>`)
} else {
console.log(`SUCCESS: Got Expected <${expected}>`)
}
}
const driver = new BotDriver()
.setCapability(Capabilities.PROJECTNAME, 'System')
.setCapability(Capabilities.CONTAINERMODE, 'docker')
.setCapability(Capabilities.FACEBOOK_API, true)
.setCapability(Capabilities.FACEBOOK_WEBHOOK_PORT, 8080)
.setCapability(Capabilities.FACEBOOK_WEBHOOK_PATH, 'webhook/facebook/')
.setCapability(Capabilities.CLEANUPTEMPDIR, false)
.setCapabilities(Capabilities.GITBRANCH, 'develop')
.setSource(Source.LOCALPATH, './system')
.setCapability(Capabilities.STARTCMD, 'npm install && npm run start')
.setEnv('NODE_TLS_REJECT_UNAUTHORIZED', 0)
.setEnv('NODE_ENV', 'test_local');
driver.BuildFluent()
.Start()
.UserSaysText('Anything!')
.WaitBotSaysText((text) => assert('Your bot is online. This is standart reply. Your message was incomming from PlatformID<3>', text))
.Stop()
.Clean()
.Exec()
.then(() => {
console.log('READY');
})
.catch((err) => {
console.log('ERROR: ', err);
});
Issue Analytics
- State:
- Created 5 years ago
- Comments:42 (20 by maintainers)
Top Results From Across the Web
Home Assistant | What docker containers are you running in h-a
Has anyone been stacking the HIZUMITAS with any ODs or DISTORTIONS? And if so, which ones? I'm curious because I'm finding it to...
Read more >How to keep Docker container running after starting services?
The container will "exit" when the process itself exits (in your case, that process is your bash script). However, if you really need...
Read more >The right way to keep docker container started when it used ...
docker run is actually a sequence of two commands: "create" and "start" ... signals and then goes to sleep for a second in...
Read more >After I run a docker run command it gets stuck indefinitely
Hi! I have an ubuntu droplet setup. I run the command “docker run -p 8080:80 dockerhub_username/dockerhub_repo”.
Read more >Ensuring Containers Are Always Running with Docker's ...
In today's article we will discuss how to use Docker's restart policy to automatically restart containers and avoid those late-night ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I added it to the top of our backlog, so it will be done by next thursday.
It’s the build 1.3.34 - no docs yet, but the sample in samples/facebook shows how to use the new capabilities - healthcheck can be configured manually (by means of url-path, http-method and status code to expect).