interbtc-api icon indicating copy to clipboard operation
interbtc-api copied to clipboard

Some integration tests fail

Open panoskj opened this issue 1 year ago • 0 comments

Describe the bug When I try to run the integration tests according to the readme file, some of them succeed, but some of them fail (a lot of them). I don't encounter any other errors prior to running the tests.

To Reproduce Steps to reproduce the behavior:

  1. git clone repo
  2. nvm use
  3. yarn install
  4. yarn build
  5. docker-compose -up d
  6. yarn test:integration:sequential

Expected behavior All tests (or most of them) should pass.

Desktop

  • OS: Debian 12.8 (inside VMware virtual machine)

Additional context When I run docker-compose logs vault_1 I see the following error coming up every 1 second.

vault_1-1  | Dec 03 20:40:19.544  WARN vault::system: Cannot register with 10000000000000, using the available free balance: 0
vault_1-1  | Dec 03 20:40:19.544  WARN vault::connection_manager: Disconnected: RuntimeError: Insufficient funds
vault_1-1  | Dec 03 20:40:19.544 ERROR vault::connection_manager: Waiting for 1 tasks to shut down...

I suppose this error isn't normal, but I can't figure out how to overcome it. I can also provide the test output if needed.

I also tried to run yarn test command, but it freezes my virtual machine (too much CPU usage). That's why I tried the sequential command. But I suspect the way I run the test is unrelated, since the docker image has errors.

panoskj avatar Dec 03 '24 21:12 panoskj