Skip to content

Commit

Permalink
Eyescale/Equalizer#146: Fix dispatcher unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
eile committed Sep 18, 2012
1 parent 0b8f694 commit 467e9e0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/dispatcher.cpp
Expand Up @@ -116,7 +116,11 @@ int main( int argc, char **argv )
{
co::BufferCache cache( 10 );
co::LocalNodePtr node = new co::LocalNode;
co::BufferPtr buffer = cache.alloc( co::OCommand::getSize( ));

const uint64_t size = co::OCommand::getSize();
co::BufferPtr buffer = cache.alloc( co::Buffer::getCacheSize( ));
buffer->resize( size );
reinterpret_cast< uint64_t* >( buffer->getData( ))[ 0 ] = size;

co::Command command( node, node, buffer, false );
command.setType( co::COMMANDTYPE_NODE );
Expand Down

0 comments on commit 467e9e0

Please sign in to comment.