Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Travis CI failing #139

Open
mariolo1985 opened this issue Apr 12, 2019 · 2 comments
Open

Travis CI failing #139

mariolo1985 opened this issue Apr 12, 2019 · 2 comments

Comments

@mariolo1985
Copy link
Contributor

Expected Behavior

Travis CI should complete the config scripts successfully

Current Behavior

Failing on multiple steps

Possible Solution

Steps to Reproduce (for bugs)

  1. Clone repo
  2. Run npm install
  3. Run the following Travis CI scripts:
  • npm run tslint
  • npm run jest
  • npm run spellcheck
  • npm run tsc
  • npm run typedoc
  • npm run create-dist
  1. Some of these CI scripts fails

Context

Your Environment

  • Version used: Master
  • Environment name and version (e.g. Node 7.3.12): Node 10.15.3 / NPM 6.9.0
  • Server type and version:
  • Operating System and version: Mac OS
  • Link to your project: https://github.com/mariolo1985/dav-js
@abdchehadeh
Copy link
Contributor

hey @mariolo1985

I am working on fixing the last error in

src/tests/Message.test.ts

I have worked on the Kafka and Contract test errors.

    Expected value to be:
      "selfId"
    Received:
      [["peerId", {"_messageType": "message", "_protocol": "drone_charging", "senderId": "selfId", "ttl": undefined}, {"apiSeedUrls": [""], "blockchainType": "ropsten", "ethNodeUrl": "https://ropsten.infura.io/wUiZtmeZ1KwjFrcC8zRO", "identityTtl": 10000, "kafkaBrowserPollingInterval": 1000, "kafkaBrowserRequestTimeout": 500, "kafkaSeedUrls": [""], "missionConsumerTtl": 10000, "missionProviderTtl": 10000, "needTtl": 10000, "needTypeTtl": 10000}]]
    
    Difference:
    
      Comparing two different types of values. Expected string but received array.

      68 |       const messageParams = new MessageParams({});
      69 |       await message.respond(messageParams);
    > 70 |       expect(kafkaMock.sendParams.mock.calls).toBe(selfId);
      71 |     });
      72 |   });
      73 | });

I tried to follow the code as much, but my head is over the place now =D

@abdchehadeh
Copy link
Contributor

https://travis-ci.org/abdchehadeh/dav-js/jobs/519704571
I was able to create a dist locally, and all the scripts ran successfully except the spellcheck
I wont create a PR, but check what I did.

This was referenced Apr 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants