Skip to content

Commit

Permalink
test: Message order change
Browse files Browse the repository at this point in the history
  • Loading branch information
ztalbot2000 committed Apr 23, 2021
1 parent c6c7fa3 commit 5f33017
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/Cmd4AccessoryGetValue.js
Original file line number Diff line number Diff line change
Expand Up @@ -400,9 +400,10 @@ describe( "Testing Cmd4Accessory", function( )
// We have to wait for the failing getValue to timeout to capture the log messages;
setTimeout(() =>
{
let expectedOutput = `getValue Mute function failed for My_Television cmd: ./test/echoScripts/echo_true_withRcOf1 Get 'My_Television' 'Mute' Failed. replyCount: 1 Error: 1`;
// let expectedOutput = `getValue Mute function failed for My_Television cmd: ./test/echoScripts/echo_true_withRcOf1 Get 'My_Television' 'Mute' Failed. replyCount: 1 Error: 1`;

assert.include( log.errBuf, expectedOutput, ` getValue stdErr output expected: ${ expectedOutput } received: ${ log.errBuf }` );
// There is no longer a failingberror message as only the first message is now sent
//assert.include( log.errBuf, expectedOutput, ` getValue stdErr output expected: ${ expectedOutput } received: ${ log.errBuf }` );
assert.equal( log.logBuf, "", ` getValue output expected: "" received: ${ log.errBuf }` );

done( );
Expand Down

0 comments on commit 5f33017

Please sign in to comment.