fn oxlTestCluster
The environment with cluster(nodes: n, roles: [...], db: ...) as c yields; the compiler calls it. An integ test runs on a single in-process node whatever nodes says.
Example:
test integ "cluster environment" with cluster(nodes: 3, roles: ["web", "store"]) as c {
assert_eq(c.nodes, 3)
}pub(api) fn oxlTestCluster(nodes: u32 = 1, roles: List<str> = [], db: TestDb = TestDb.Builtin) -> stream<TestCluster>Since. 1.0.0-beta
Parameters
Returns
Effects
none declared (pure unless the body says otherwise)
Defined in: std/core/testing.oxl:134