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

Fix cats-effect JS tests flakiness #209

Merged
merged 1 commit into from Jun 15, 2018
Merged

Conversation

BenFradet
Copy link
Contributor

Merged too soon apparently

@BenFradet
Copy link
Contributor Author

just realized you don't have access to env variables in scalajs... 😢

@BenFradet BenFradet changed the title [WIP] Fix cats-effect JS tests flakiness Fix cats-effect JS tests flakiness Jun 14, 2018
@BenFradet
Copy link
Contributor Author

Ran the build 5 times and the above works 👍


class CatsEffectJSSpec extends AsyncFunSuite with Matchers {

implicit override def executionContext: ExecutionContextExecutor = ExecutionContext.global

val accessToken = sys.env.get("GITHUB4S_ACCESS_TOKEN")
val accessToken =
js.Dynamic.global.process.env.GITHUB4S_ACCESS_TOKEN.asInstanceOf[js.UndefOr[String]].toOption
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😮 👍

@BenFradet BenFradet merged commit ff0e380 into master Jun 15, 2018
@BenFradet BenFradet deleted the bf-cats-effect-js-tests branch June 15, 2018 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants