~stacyharper/bonsai

ee267dd876e284de496446011924479b927356a7 — Stacy Harper 12 days ago 74eea2a
Oops. So setup pipes in tests
1 files changed, 5 insertions(+), 4 deletions(-)

M bonsai/test_state_machine.ha
M bonsai/test_state_machine.ha => bonsai/test_state_machine.ha +5 -4
@@ 5,6 5,7 @@ use bufio;
use os;
use io;
use strings;
use unix;

let transitions1: []transition = [
	transition_context {


@@ 329,7 330,7 @@ let transitions5: []transition = [
@test fn state_forward_check_delay_triggered_test() void = {
	let state = state_machine {
		available_transitions = transitions5,
		wait_pipes = void,
		wait_pipes = unix::pipe(unix::pipe_flag::NONBLOCK)!,
		...
	};



@@ 357,7 358,7 @@ let transitions5: []transition = [
@test fn state_forward_check_delay_cancelled_test() void = {
	let state = state_machine {
		available_transitions = transitions5,
		wait_pipes = void,
		wait_pipes = unix::pipe(unix::pipe_flag::NONBLOCK)!,
		...
	};



@@ 388,7 389,7 @@ let transitions5: []transition = [
@test fn state_forward_check_delay_cancelled_ignored_test() void = {
	let state = state_machine {
		available_transitions = transitions5,
		wait_pipes = void,
		wait_pipes = unix::pipe(unix::pipe_flag::NONBLOCK)!,
		...
	};



@@ 449,7 450,7 @@ let transitions6: []transition = [
	let state = state_machine {
		all_transitions = transitions6,
		available_transitions = transitions6,
		wait_pipes = void,
		wait_pipes = unix::pipe(unix::pipe_flag::NONBLOCK)!,
		...
	};