Adam Fraser

Results 324 comments of Adam Fraser

Yes, the implementation uses the current time in nanoseconds to set the seed so if multiple tests start at exactly the same time they could have the same seed. I...

In ZIO 1.0 you need to do it with a layer like `Random.live` or `ZEnv.live`. In ZIO 2.0 there are a set of aspects `withLiveRandom` or `withLiveEnvironment` you can use.

@jdegoes That sounds like a fantastic API. How do we get the information from the method to test framework? It seems like if we want to render the results in...

@iilyak You can already use `Console.printLine` or `ZIO.debug` to print debug information in your tests.

@iilyak `ZIO.debug` will always be printed. If you don't want `Console.printLine` to be printed you can use `TestAspect.silent`.

You can also use `ZIO.logDebug` which will be logged to the console and you can disable with `Runtime.removeDefaultLoggers`.

I think there are two things to consider. First, what is the benefit here? I'm still somewhat unclear on this. It seems like there are two situations: 1. The layer...

Hmmm, I see (3) as a subset of (1). You do have an API that you want to enforce with regard to your internal "clients" that are using this layer,...

I don't think the supervisor interface has changed since we did the initial implementation of the profiler. Would like to avoid adding additional methods to the supervisor interface if possible....

I'm not sure this is erroneous. We ran two workflows in parallel, one of which failed with a `Die` failure. Per the semantics of parallelism operators we then interrupted the...