Skip to content

Commit

Permalink
fix test, see commit comments to PurgeService/SqlMap
Browse files Browse the repository at this point in the history
  • Loading branch information
erilong committed Mar 25, 2018
1 parent e2d8132 commit a07c5e9
Showing 1 changed file with 1 addition and 2 deletions.
Expand Up @@ -1000,8 +1000,7 @@ public void test25TestPurge2() throws Exception {
int batchId = getServer().getSqlTemplate().queryForInt("select min(batch_id) from sym_outgoing_batch");
int purgeCount = getServer().getSqlTemplate().queryForInt("select count(*) from sym_data_event where batch_id = ?", batchId);

// Purge always leaves the last item in a table, so we have to abandon at least two
getServer().getSqlTemplate().update("delete from sym_outgoing_batch where batch_id in (?, ?)", batchId, batchId + 1);
getServer().getSqlTemplate().update("delete from sym_outgoing_batch where batch_id = ?", batchId);

IParameterService parameterService = getServer().getParameterService();
int purgeRetentionMinues = parameterService.getInt(ParameterConstants.PURGE_RETENTION_MINUTES);
Expand Down

0 comments on commit a07c5e9

Please sign in to comment.