Skip to content

Commit

Permalink
test/t0004-event.t: add event loopback test
Browse files Browse the repository at this point in the history
Add some coverage for event encode/decode by publishing
events with payloads that are empty, JSON, and raw,
in --loopback mode.
  • Loading branch information
garlick committed Apr 25, 2018
1 parent d92bad8 commit 56ff5c1
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions t/t0004-event.t
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,16 @@ test_expect_success "events from rank $LASTRANK received correctly on rank 0" '
test_cmp trace.expected trace
'

test_expect_success 'publish event with no payload (loopback)' '
run_timeout 5 flux event pub -l foo.bar
'

test_expect_success 'publish event with JSON payload (loopback)' '
run_timeout 5 flux event pub -l foo.bar {}
'

test_expect_success 'publish event with raw payload (loopback)' '
run_timeout 5 flux event pub -l -r foo.bar foo
'

test_done

0 comments on commit 56ff5c1

Please sign in to comment.