Skip to content

Commit

Permalink
Merge pull request #131 from scalar-labs/fix-test
Browse files Browse the repository at this point in the history
Fix the broken tests
  • Loading branch information
feeblefakie authored Dec 17, 2020
2 parents ab25923 + 7cecefb commit 5bc1f6f
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ public class ConsensusCommitWithCassandraIntegrationTest {
private static final String PASSWORD = "cassandra";
private static final String CONTACT_POINT = "localhost";
private DistributedStorage storage;
private DatabaseConfig config;
private Coordinator coordinator;
private RecoveryHandler recovery;
private CommitHandler commit;
Expand All @@ -34,11 +35,12 @@ public void setUp() {
props.setProperty(DatabaseConfig.CONTACT_POINTS, CONTACT_POINT);
props.setProperty(DatabaseConfig.USERNAME, USERNAME);
props.setProperty(DatabaseConfig.PASSWORD, PASSWORD);
storage = spy(new Cassandra(new DatabaseConfig(props)));
config = new DatabaseConfig(props);
storage = spy(new Cassandra(config));
coordinator = spy(new Coordinator(storage));
recovery = spy(new RecoveryHandler(storage, coordinator));
commit = spy(new CommitHandler(storage, coordinator, recovery));
manager = new ConsensusCommitManager(storage, coordinator, recovery, commit);
manager = new ConsensusCommitManager(storage, config, coordinator, recovery, commit);

test = new ConsensusCommitIntegrationTest(manager, storage, coordinator, recovery);
test.setUp();
Expand Down

0 comments on commit 5bc1f6f

Please sign in to comment.