OxL Reference

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:

oxl✓ checked in CI
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

NameType
nodesu32 = 1
rolesList<str> = []
dbTestDb = TestDb.Builtin

Returns

stream<TestCluster>

Effects

none declared (pure unless the body says otherwise)

Defined in: std/core/testing.oxl:134

See also