Skip to content

Commit 7072648

Browse files
committed
Fix role not set in tests
1 parent b9ecec6 commit 7072648

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

spec/participant.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ exampleProg = (name) ->
77
return path.join __dirname, '..', 'target', 'debug', 'examples', name
88

99
participants =
10-
'rust/Repeat': [ exampleProg 'repeat' ]
10+
'rust/Repeat': [ exampleProg('repeat'), '--role=repeat' ]
1111

1212
describe 'Participants', ->
1313
address = 'amqp://localhost'

src/participant.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ pub fn main(orig: Participant) {
274274
let p = Participant { info: info, process: orig.process }; // XXX: hack
275275

276276
let mut c = start_participant(&p, &options);
277-
println!("{}({}) started", &options.role, &p.info.component);
277+
println!("{}({}) started", &p.info.role, &p.info.component);
278278
c.channel.start_consuming();
279279

280280
stop_participant(&p, &mut c);

0 commit comments

Comments
 (0)