Skip to content

Commit

Permalink
Adding generated Thrift files + cassandra.thrift. fixed config + Pand…
Browse files Browse the repository at this point in the history
…raTest
  • Loading branch information
mjpearson committed Jan 16, 2010
1 parent 33a065f commit f890d00
Show file tree
Hide file tree
Showing 22 changed files with 9,360 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config.php
Expand Up @@ -22,7 +22,7 @@
*
* @package Pandra
*/
$GLOBALS['THRIFT_ROOT'] = dirname(__FILE__).'/../thrift-php/';
$GLOBALS['THRIFT_ROOT'] = dirname(__FILE__).'/thrift-php/';

require_once $GLOBALS['THRIFT_ROOT'].'/packages/cassandra/Cassandra.php';
require_once $GLOBALS['THRIFT_ROOT'].'/transport/TSocket.php';
Expand Down
4 changes: 2 additions & 2 deletions tests/lib/PandraTest.php
Expand Up @@ -115,8 +115,8 @@ public function testGetKeyspace() {
// at least be able to pull out their basic attributes
$expectedKeys = array('FlushPeriodInMinutes', 'Type', 'Desc');

foreach ($ks as $keySpace => $columnFamily) {
$diff = array_diff($expectedKeys, array_keys($columnFamily));
foreach ($ks as $columnFamily => $attributes) {
$diff = array_diff($expectedKeys, array_keys($attributes ));
$this->assertTrue(empty($diff));
}
}
Expand Down

0 comments on commit f890d00

Please sign in to comment.