Skip to content

Commit

Permalink
Merge pull request #410 from lukecampbell/fix
Browse files Browse the repository at this point in the history
Writes more instrument values so test_activate succeeds
  • Loading branch information
lukecampbell committed Dec 12, 2012
2 parents 4c0556d + 0f9fd22 commit 5b8cdf5
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions ion/services/sa/test/test_activate_instrument.py
Expand Up @@ -311,12 +311,10 @@ def start_instrument_agent():
self.assertEqual(state, ResourceAgentState.COMMAND)

cmd = AgentCommand(command=SBE37ProtocolEvent.ACQUIRE_SAMPLE)
retval = self._ia_client.execute_resource(cmd)
print "test_activateInstrumentSample: return from sample %s" % str(retval)
retval = self._ia_client.execute_resource(cmd)
print "test_activateInstrumentSample: return from sample %s" % str(retval)
retval = self._ia_client.execute_resource(cmd)
print "test_activateInstrumentSample: return from sample %s" % str(retval)
for i in xrange(10):
retval = self._ia_client.execute_resource(cmd)
print "test_activateInstrumentSample: return from sample %s" % str(retval)


print "test_activateInstrumentSample: calling reset "
cmd = AgentCommand(command=ResourceAgentEvent.RESET)
Expand All @@ -332,7 +330,7 @@ def start_instrument_agent():
rdt = RecordDictionaryTool.load_from_granule(replay_data)
log.debug("RDT parsed: %s", str(rdt.pretty_print()) )
temp_vals = rdt['temp']
self.assertTrue(len(temp_vals) == 3)
self.assertTrue(len(temp_vals) == 10)


replay_data = self.dataretrieverclient.retrieve(self.raw_dataset)
Expand All @@ -341,7 +339,7 @@ def start_instrument_agent():
log.debug("RDT raw: %s", str(rdt.pretty_print()) )

raw_vals = rdt['raw']
self.assertTrue(len(raw_vals) == 3)
self.assertTrue(len(raw_vals) == 10)


print "l4-ci-sa-rq-138"
Expand Down

0 comments on commit 5b8cdf5

Please sign in to comment.